Closed gulbrillo closed 10 years ago
Javascript doesn't support unicode character classes, but you should be able to match unicode characters with \uXXXX: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#Example.3A_Regular_expression_and_Unicode_characters
The API for input validation changed recently to match the native input
API. You can pass in a regular expression in the pattern
attribute to use for validation.
Closing this as pattern
should work for regular expressions.
I was running into some trouble with utf-8 regex (like \pL or \pZ) and just wanted to check if there are any known issues. Why did you remove this feature? It was brilliant to fine-tune some form fields for a scientific project I'm working on. I'll just keep the old version for now and do some workaround for utf-8 input...