Regex to exclude 1 word out of a regex code.

Posted by Mech Software on Stack Overflow See other posts from Stack Overflow or by Mech Software
Published on 2010-04-07T18:16:01Z Indexed on 2010/04/07 18:33 UTC
Read the original article Hit count: 381

Filed under:
|

I need a regex expert to help out on this one. Examples I've found on here and the net I cant seem to get right. I'm using PHP and I have the following regex expression

/([^a-zA-Z0-9])GC([A-Z0-9]+)/

This matches items like GCABCD GC123A, etc. What i need to do is EXCLUDE GCSTATS from this. So basically I want it to work just as it has, except, ignore GCSTATS in the regex.

© Stack Overflow or respective owner

Related posts about regex

Related posts about php