LongText custom field regex validation
Added by Tyghe Vallard over 9 years ago
I am trying to configure a text field that people will enter in a list of names that have to be validated. I'm not sure if my regex is wrong or my assumptions or maybe a bug with validation.
Each line in the field should pass the following regex:
^[a-zA-Z0-9-]+$
I'm unsure how the validation occurs. Does ^
match the beginning of the field and $
match the end of the field, or do they match beginning and end of each line?
Maybe the validation only occurs on the last line which is what seems to be happening but does not seem to be the intended behaviour
Custom field definition
Accepts if the last line contains a valid expression
Fails if the last line fails
Changing the regex to the following will allow you to put anything in the field which is unwanted
[a-zA-Z0-9-]+
redscreen.png (34 KB) redscreen.png | |||
redscreen3.png (42.9 KB) redscreen3.png | |||
redscreen2.png (36.6 KB) redscreen2.png |