Using Regex for a custom validation - text entory & limiting the number of inputs | XM Community
Skip to main content
Solved

Using Regex for a custom validation - text entory & limiting the number of inputs


Forum|alt.badge.img+1

Hello,

I am looking for a way to set a regex code in a name entry field with limiting (1)the content type to a text-only and (2) the max 35 characters.

Could anyone help me find an appropriate regex code for it? Thank you!

Best answer by omkarkewat

Hi @kuroseau Please try this:  ^[a-zA-Z\s']{1,35}$

View original

2 replies

Forum|alt.badge.img+20
  • QPN Level 5 ●●●●●
  • 290 replies
  • Answer
  • March 21, 2024

Hi @kuroseau Please try this:  ^[a-zA-Z\s']{1,35}$


Forum|alt.badge.img+1
  • Author
  • 1 reply
  • March 21, 2024

Thank you so much!


Leave a Reply