In a Confiforms definition field macro, I have defined a validation rule using a regular expression for a text area field to have the user enter multiple IP addresses. I tested the regular expression in regex101.com that works as expected, but not in the Confiforms validation rule. I am not sure if this is a bug or not in the application. I have the code written as:
([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})+
Please advise. Thank you.
As far as I understand this regexp validates one IP address
If you enter multiple in multiple rows - it will fail (as it is tested agains the whole contents/text in the textarea)
Alex
Hi @Alex Medved _ConfiForms_ . I am using a space between IP addresses, instead of newlines. I tried it with comma separated and semi-colons, but no luck. The "+" in the regular expression code allows for any single separations/delimiters. Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, but ConfiForms does not split your values into groups and attempts to match regular expression against each group. It matches the whole contents against the given pattern
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.