Handling equals sign and question mark in URL

Posted by Ron on Stack Overflow See other posts from Stack Overflow or by Ron
Published on 2010-05-13T20:26:50Z Indexed on 2010/05/13 20:34 UTC
Read the original article Hit count: 329

Filed under:

Hello, I am new to regex and am trying to extract from a database a list of URLs that match xyz.asp? followed by any eight digit RequestID numbers. I can't figure out what is wrong with my expression: /abcd/..asp\?\w+=.?[0-9]*?

Example: http://domain.com/abcd/xyz.asp?RequestID=20100401

Do I have it wrong with 1) not starting/ending with ^$ 2) escaping the dot 3) escaping the question mark 4) matching the equals sign 5) or something else?

Thank you

© Stack Overflow or respective owner

Related posts about asp