I'm using this code for searching and replacing :
preg_match_all("/\{$WSCPAGELINK([^\}]*)\NAV}/U", $pageHtmlBody, $Matches);
and this works fine with php version older than 4.3.3.
But in new PHP version i'm getting this error:
Warning: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 21
If i add 2 extra slashes just before NAV:
preg_match_all("/\{$WSCPAGELINK([^\}]*)\\\NAV}/U", $pageHtmlBody, $Matches);
this does not give any error messages, but now i'm not getting any result.
Basically, i want all the contents appearing in between {$WSCPAGELINK and NAV}.
Pls help
getting contents inbetween
Moderator: General Moderators
-
TheBentinel.com
- Forum Contributor
- Posts: 282
- Joined: Wed Mar 10, 2004 1:52 pm
- Location: Columbus, Ohio
Re: getting contents inbetween
What does the /U do? What happens if you take it out?nymanish wrote: preg_match_all("/\{$WSCPAGELINK([^\}]*)\NAV}/U", $pageHtmlBody, $Matches);