Skip to main content
Nintex Community Menu Bar

Regex for \have to contain"

  • March 29, 2017
  • 5 replies
  • 8 views

Forum|alt.badge.img+3

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

[,]s+

but does not work...

Thanks!!!

Jakob

5 replies

Forum|alt.badge.img+9
  • March 29, 2017

regex is not valid, token is not quantifiable!


Forum|alt.badge.img+7
  • Nintex Partner
  • March 29, 2017

Hi Jakob,

This one should do the job :

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


Forum|alt.badge.img+9
  • March 29, 2017

Hi Pierre,

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

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


Forum|alt.badge.img+7
  • Nintex Partner
  • March 29, 2017

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


Forum|alt.badge.img+9
  • April 4, 2017

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