Skip to main content
Nintex Community Menu Bar

A regular expression to exclude a word/string

  • November 9, 2017
  • 1 reply
  • 11 views

Forum|alt.badge.img+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

Forum|alt.badge.img+6
  • Author
  • November 9, 2017

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