Page 1 of 1

Quick Reg Exp question

Posted: Sun Sep 25, 2005 12:58 pm
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

Posted: Sun Sep 25, 2005 1:03 pm
by pilau
Should be posted in the Regexps forum.

Posted: Sun Sep 25, 2005 1:21 pm
by John Cartwright
pilau wrote:Should be posted in the Regexps forum.
Agreed. Moved to Regex.

Posted: Sun Sep 25, 2005 1:59 pm
by Ambush Commander

Code: Select all

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