Skip to main content
Nintex Community Menu Bar

Regex for \have to contain"

  • Mar 29, 2017 8:20 AM UTC
  • 5 replies
  • 18 views
  • Translate All

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
  • Mar 29, 2017 9:32 AM UTC

regex is not valid, token is not quantifiable!

Translate

Forum|alt.badge.img+7
  • Nintex Partner
  • Mar 29, 2017 9:44 AM UTC

Hi Jakob,

This one should do the job :

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

Translate

Forum|alt.badge.img+9
  • Mar 29, 2017 10:34 AM UTC

Hi Pierre,

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

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

Translate

Forum|alt.badge.img+7
  • Nintex Partner
  • Mar 29, 2017 11:40 AM UTC

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

Translate

Forum|alt.badge.img+9
  • Apr 4, 2017 8:20 AM UTC

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

Translate