lodewijk/low.replace.ee2_addon — pull request #2 by iainsaxon (2011-11-03 11:45:16+00:00)
Title: Feature: regular expressions flag parameter

Added new parameter to allow front-end developers to pass custom regular expression flags (such as the /s flag).

Needed to add a $flags variable to the constructor method to pass to the _preg_regex() method and then append the value of the flags parameter to the regex pattern.

For the moment I am stripping the 'i' from the flags param and relying on the front-end developer to use the existing case sensitivity parameter to manage this flag. This should help with backwards compatibility and assert that the flags parameter is for regular expression power-users.