Re: Regular Expression differences between 4.4 and 5.2

From: Date: Fri, 12 Sep 2008 12:06:57 +0000
Subject: Re: Regular Expression differences between 4.4 and 5.2
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-279959@lists.php.net to get a copy of this message
Jochem Maas schreef:
Ewen Cumming schreef:
Hi everybody,
...
BUT I may have work around for you, try this regexp (replaces s modifer with m modifier): $pattern = "/<!T_([^> ]+)([^>]*)>(.*?)<!T_end\\1>|<!T_([^> ]+)([^>]*)>/mi";
the following pattern also seems to do what you want: $pattern = "/<!T_([^> ]+)([^>]*)>(.*?)<!T_end\\1>|<!T_([^> ]+)([^>]*)>/Ui"; Im interested to know if either of these two solve your immediate issue.

« previous php.general (#279959) next »