Modalità offline. Versione di sola lettura della pagina.
Toggle navigation
Forums
Knowledge Base
Status
Downloads
Richieste di supporto
All
All
Web Pages
Forum
Articoli della Knowledge Base
Search Filter
All
Web Pages
Forum
Articoli della Knowledge Base
Find Answers
Italiano
Deutsch
Español
Français
English
日本語
Italiano
Accedi
Home
Community Forums
Questions about Usage and Configuration
Field Mask to limit the number of characters allowed
Field Mask to limit the number of characters allowed
Registrato
Wed, 08 Jul 2020 20:05:35 GMT
di
Steve Shriver
Application Specialist
Has anyone ever created a field mask that will allow any characters but limit the entry?
A customer wants to allow only 20 characters in a text field. But it's a cloud system so there is no changing the DB itself.
I thought I had the expression right for any letter, digit, hyphen or space but now '/' and commas are required. Is there a wild card in RegEx?
Any clues appreciated,
Registrato
Thu, 09 Jul 2020 13:08:48 GMT
di
Josef Zayats
Steve, try this for length of 20
[\s\S]{20}
or this for range of lengths
[\s\S]{19,21}
Registrato
Thu, 09 Jul 2020 13:09:22 GMT
di
Steve Shriver
Application Specialist
In case anyone is interested. This field mask will allow any character, 0 to 20 times. \s is white space and \S is non-white space.
[\s\S]{0,20}
Registrato
Thu, 09 Jul 2020 13:10:48 GMT
di
Steve Shriver
Application Specialist
Josef, you're right of course.
Thanks,
You must be signed in to post in this forum.
Ottieni aiuto
Search in Knowledge Base
Ask Community
New Support Request