Regular express to negate a string

There was a question on the community about negating a specific keyword using Regular Express.

Use case: You want to not run the Automation rule when a release is created with name "norelease".

So in this case when you created a new rule with Version created trigger then use the following regular expression.

^(?!.*norelease).*$

Enjoy!

Syndications

Ravi Sagar Newsletter

Honestly I hardly send out mails but I guess there is no harm in at least having a newsletter. I will only send newsletter when I have something important to share or an update. People are busy and no one has time to read emails these days. If you really like my content then I guess you will remember my site and come back for more.

Want to contact me?