Find a string while ignoring another string


/ Published in: Regular Expression
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. ^FOO(?:(?!BAR).)*$

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.