Posted By

joshuamil on 11/24/11


Tagged


Versions (?)

Find a string while ignoring another string


 / Published in: Regular Expression
 

Finds a string that doesn't contain another string. For example, find the text FOO* that isn't FOOBAR.

  1. ^FOO(?:(?!BAR).)*$

Report this snippet  

You need to login to post a comment.