Regular exp from perl to php qu
Posted: Tue Oct 28, 2003 2:39 am
Below is a Perl code regular expression. It worked fine for me but when I run it in php (removing the gm parameter) if will only return one result with everything inside. could anyone help me?
In Perl
In PHP
In Perl
Code: Select all
while($annotation =~ /^їA-Z].*\n(^\s.*\n)*/gm))Code: Select all
preg_match("/^їA-Z].*\n(^\s.*\n)*/s", $ann, $matches);