Quick Reg Exp question

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
mzfp2
Forum Contributor
Posts: 137
Joined: Mon Nov 11, 2002 9:44 am
Location: UK
Contact:

Quick Reg Exp question

Post by mzfp2 »

Hi,

hope somebody can help me with this quick regular expression help I need with my PHP script.

I simply need to remove the following from any string

Page=xx

Where xx is a number between 0 and 999 (number of digits vary)

Many Thanks
Muz
pilau
Forum Regular
Posts: 594
Joined: Sat Jul 09, 2005 10:22 am
Location: Israel

Post by pilau »

Should be posted in the Regexps forum.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

pilau wrote:Should be posted in the Regexps forum.
Agreed. Moved to Regex.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Code: Select all

/Page=(\d{1,3})/
Post Reply