NYCPHP Meetup

[nycphp-talk] strange regex problem

FB` fb at intldef.org
Mon Aug 11 17:57:30 EDT 2003


I have an apparently valid regular expression,
^.*<title>([^<]*)</title>.*$
that works well in one site, but causes the server hosting a different site
to grind its teeth to nubs on it - consistently exceeding max ex time...

the full line goes like this:
    $text_a_title =
eregi_replace("^.*<title>([^<]+)</title>.*$","\\1",$str);

if i bypass this line, everything else works swimmingly...


any suggestions?
(taking a title from an html file)


TIA

FB`




More information about the talk mailing list