cancel
Showing results for 
Search instead for 
Did you mean: 
jkweaver
Nintex Newbie

A regular expression to exclude a word/string

Jump to solution

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.

Labels: (2)
Tags (1)
0 Kudos
Reply
1 Reply
jkweaver
Nintex Newbie

Re: A regular expression to exclude a word/string

Jump to solution

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

View solution in original post

Reply