diff options
author | Nathan Gass | 2010-11-25 13:45:36 +0000 |
---|---|---|
committer | Nathan Gass | 2010-11-25 13:45:36 +0000 |
commit | b37331b60964b1f7f527ec6c61fd23e032ec396b (patch) | |
tree | be445039ec0eb651093629f5d741cf4e5cd29af8 | |
parent | a44827633d4fa0a44009d013e79b704a629c7962 (diff) | |
download | itools-b37331b60964b1f7f527ec6c61fd23e032ec396b.tar.gz itools-b37331b60964b1f7f527ec6c61fd23e032ec396b.tar.bz2 itools-b37331b60964b1f7f527ec6c61fd23e032ec396b.zip |
add exec modifier
-rw-r--r-- | it.class | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -315,7 +315,8 @@ static function toascii($text) * @param $p['multiline'] add modifier m: ^ and $ match \n * @param $p['singleline'] add modifier s: . matches \n * @param $p['utf8'] add modifier u - * @param $p['extended'] add modifier x + * @param $p['extended'] add modifier x (non signifcant whitespace) + * @param $p['exec'] add modifier e (execute replace string as php-code) * @return converted regex to use with preg */ static function convertregex($pattern, $p = array()) @@ -331,6 +332,7 @@ static function convertregex($pattern, $p = array()) 'singleline' => 's', 'utf8' => 'u', 'extended' => 'x', + 'exec' => 'e', ) as $key => $mod) { if ($p[$key]) |