1,105,644 Community Members

Getting Contents Inbetween

Member Avatar
nymanish
Newbie Poster
1 post since Mar 2004
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I'm using following 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

Member Avatar
Roberdin
Supreme Evil Overlord
282 posts since Feb 2003
Reputation Points: 9 [?]
Q&As Helped to Solve: 7 [?]
Skill Endorsements: 0 [?]
Team Colleague
 
0
 

can't u move that \ ?

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article