Reputation: 145
i am using GXT 2.1.1 and GWT 2.0.3. i created a Unicode regex expression, and then set it via TextBundle().setRegEx() function. it works like a charm in debug mode, but not in production.
my goal is to only allow either alphanumeric values, or numeric values only that can also be negative. when i use ASCII expression such as:
^(([a-zA-Z0-9]+)|(\-?[0-9]+))$
it works in both debug and production modes. but when switching to Unicode expression:
^(([\pL\pN]+)|(\-?[\pN]+))$
it only works in debug.
i am really stuck and would greatly appreciate any help. thank you!!!
Upvotes: 0
Views: 239
Reputation: 3048
Seems to me that JavaScript does not support Unicode shortcut/character-classes natively (see here and here).
Just stick with the first version or use valid character classes.
Upvotes: 2