From b37331b60964b1f7f527ec6c61fd23e032ec396b Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Thu, 25 Nov 2010 13:45:36 +0000 Subject: add exec modifier --- it.class | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'it.class') 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]) -- cgit v1.2.3