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

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

  • 21 March 2024
  • 2 replies
  • 24 views

Badge +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!

icon

Best answer by omkarkewat 21 March 2024, 07:25

View original

2 replies

Userlevel 5
Badge +12

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

Badge +1

Thank you so much!

Leave a Reply