View Full Version : Need help with some REGEX
Canuckkev
February 21st, 2004, 01:07
Okay, I am trying to match a string like:
viewtopic.php?t=142&start=30
And am using this regex:
(?<!/)viewtopic\.php\?t=([0-9]*)&start=([0-9]*)
But, it's not working...any ideas?
Thanks!
CareBear
February 21st, 2004, 06:23
Which language are you trying to use it in?
Canuckkev
February 21st, 2004, 11:30
Yea, I guess that would help...it's php.
But, I figured out what was wrong (even if I still don't fully understand). I turnedthe & into & and it works.
bloodyveins
February 22nd, 2004, 07:24
(?<!/)viewtopic\.php\?t=([0-9]*)&start=([0-9]*)
I suggest:
$regex = "viewtopic\.php\?t\=[0-9]+\&start\=[0-9]+$";
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.