We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Products
Revo Discussions & Support
Revolution 2.4
Search
TV Text RegEx - not working
<
1
2
>
MODX Staff
123 Posts
Sepia River
Reply #11,
6 years, 4 months ago
Whatever you put into the Input Options field "Regular Expression Validator" will be inserted into the JavaScript RegExp constructor:
new RegExp('{$params.regex}')
So a regex literal, example:
/^[\w]{11}$/
would need to be entered like this instead:
^[\\w]{11}$
[sepiariver.com] (
https://sepiariver.com/
)
24,544 Posts
BobRay
Reply #12,
6 years, 4 months ago
I'm not sure that's still true. I haven't tested it lately, but there was a PR on this issue:
https://github.com/modxcms/revolution/issues/13899
Did I help you?
Buy me a beer
Get my Book:
MODX:The Official Guide
MODX info for everyone:
http://bobsguides.com/modx.html
My MODX Extras
Bob's Guides is now hosted at
A2 MODX Hosting
<
1
2
>