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

Regex for "have to contain

Hi!

When I try to force user to enter information like

Mustermann, Max

and want to avoid entries like

Mustermann Max

which regex should I use?

I tried it with

\b[,]\s\b+

but does not work...

Thanks!!!

Jakob

Labels: (1)
0 Kudos
Reply
5 Replies
mlauer
Nintex Newbie

Re: Regex for "have to contain

regex is not valid, \b token is not quantifiable!

Reply
pfudala
Nintex Newbie

Re: Regex for "have to contain

Hi Jakob,

This one should do the job :

[A-Za-z]+[,]\s[A-Za-z]+

Reply
mlauer
Nintex Newbie

Re: Regex for "have to contain

Hi Pierre,

Jakobs regex is working when omitting '+' at the end.

Your solution would not work with names containing e.g. german umlaute.

Reply
pfudala
Nintex Newbie

Re: Regex for "have to contain

Exact, I actually tested it with his example in order to find a full exact match, no more reflexion about it sorry 

Reply
mlauer
Nintex Newbie

Re: Regex for "have to contain

Jakob Putz can you please mark the answer that helped you as correct?

Reply