Hello.
I am having a Problem with Regular Expression Validator of a Template Variable.
1. When i set Validator as '^\d+$' (without Quotes) and try to put '123' there, it gives an Error.
2. When i set Validator as '/^\d+$/' (without Quotes) and try to put '123' there, it gives an Error.
Error is following: 'The value in this field is invalid'.
What is the Reason and how to make it working?
Thank you.
I couldn't get that to work either. Even '\d+' and '/\d+/' didn't work. That expression is correct in both JavaScript and PCRE, so I'd say the regex validator is broken (I've heard this before).
You can report it here:
https://github.com/modxcms/revolution/issues.