Hi,
I was forced to use PCRE because it supports non-greedy regular expressions, but this
preg_match("|<MYTAG>(.*)</MYTAG>|U","<MYTAG>hello</MYTAG>",$matches)
should (as I understand it) give the following result:
$matches[0]="<MYTAG>hello</MYTAG>"
$matches[1]="hello"
but I get:
$matches[0]="hello"
$matches[1]="hello"
Do anybody know why that is?
I'm using PHP 4.0.6 and PCRE Library Version 3.4.
Thanks in advance, Morten