How can I match on, but exclude a regex pattern?

Posted by Adam on Stack Overflow See other posts from Stack Overflow or by Adam
Published on 2010-06-09T05:38:06Z Indexed on 2010/06/09 5:42 UTC
Read the original article Hit count: 190

Filed under:
|
|
|

I have this URL:

http://example.com/createSend/step4_1.aspx?cID=876XYZ964D293CF&snap=true&jlkj=kjhkjh&

And this regex pattern: cID=[^&]*

Which produces this result:

cID=87B6XYZ964D293CF

How do I REMOVE the "cID="?

Thanks

© Stack Overflow or respective owner

Related posts about regex

Related posts about url