summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorNathan Gass2010-11-25 13:45:36 +0000
committerNathan Gass2010-11-25 13:45:36 +0000
commitb37331b60964b1f7f527ec6c61fd23e032ec396b (patch)
treebe445039ec0eb651093629f5d741cf4e5cd29af8 /it.class
parenta44827633d4fa0a44009d013e79b704a629c7962 (diff)
downloaditools-b37331b60964b1f7f527ec6c61fd23e032ec396b.tar.gz
itools-b37331b60964b1f7f527ec6c61fd23e032ec396b.tar.bz2
itools-b37331b60964b1f7f527ec6c61fd23e032ec396b.zip
add exec modifier
Diffstat (limited to 'it.class')
-rw-r--r--it.class4
1 files changed, 3 insertions, 1 deletions
diff --git a/it.class b/it.class
index f3dd0a8..111ca70 100644
--- a/it.class
+++ b/it.class
@@ -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])