A regular expression to exclude a word/string

  • 9 November 2017
  • 1 reply
  • 3 views

Badge +6

I am in need of help with adding to a Regular Expression. I currently have a field on my Nintex form that captures a prefix, with an expression of [a-zA-Z]+ so that it will only include alphas. However, I need to also have it exclude 2 certain words: auto and home.

How do I build in an additional expression so that I can exclude entry of the words auto and home but also continue to allow the filed to capture alphas for the prefix.

I have been searching around but each expression I try excludes the words but also excludes any alpha entry.


1 reply

Badge +6

I found the solution a few minutes ago.... (?!(auto|home))[a-zA-Z]+

Reply