Can i exclude a word in my pattern?

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2010-03-22T15:27:16Z Indexed on 2010/03/23 9:53 UTC
Read the original article Hit count: 113

Filed under:
|

I know i can do something like ab[^c]+def which should match ab_blah_hi_blah_def but is there a way to do something like

ab(^hi)+def

which will exclude the word hi causeing ab_blah_hi_blah_def to fail? but not ab_blah_h_i_blah_def

© Stack Overflow or respective owner

Related posts about regex

Related posts about .NET