943,961 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 2938
  • PHP RSS
Mar 15th, 2004
0

Getting Contents Inbetween

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nymanish is offline Offline
1 posts
since Mar 2004
Mar 15th, 2004
0

Re: Getting Contents Inbetween

can't u move that \ ?
Team Colleague
Reputation Points: 63
Solved Threads: 6
Supreme Evil Overlord
Roberdin is offline Offline
282 posts
since Feb 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Help with a script
Next Thread in PHP Forum Timeline: vB Sessions/Online list





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC