RegEx Ninja: Make sure a String does not contain a pattern
^((?!highLightRow).)*$
I wanted to make sure a string did not contain a piece of text, specifically “highLightRow”. The reason is I’m writing test cases in Selenium and I want to make sure a line does not contain an error. The way I know it contains an error is if the text looks something like this:
<div id="my-id" [...]
Also tagged