make default regex options configurable