Hi,
I want to use regex function to check if the entered value is a text ( both upper and lower case check) and if it's more than 12 characters.^[a-zA-Z]{1-12}$" .I used like this. can someone guide here.
Discussion posts and replies are publicly visible
^[A-Za-z]{12,}$
I used this in Validation for my field, but it's not validating. if( regexmatch( "^[A-Za-z]{12}$", ri!frecord[],
), "The account must be numerical and no more than 12 numbers", {} )
I am missing that comma here
Tried with comma.
This is confusing. Why do you check whether the string does NOT match the pattern. I mean, to make sure a string is digits only and max 12 characters, you can use this:
if( regexmatch( "^[0-9]{1,12}$", ri!value, ), null, "The account must be numerical and no more than 12 numbers" )
Thanks a lot, it worked