javascript - What would be the regular expression to accept only 2 bytes accented characters with spaces? -
i have text field in have accept 2 bytes accented characters, in whatever language is. i.e. whether french, german, spanish, etc.
i used regex : /^[a-zÀ-ÿ\\s]*$/
but not accept character : ¢
thanks in advance
i got solution other source. can done without regular expression also.
javascript function created calculates bytes each character. , validate if more 2 bytes or not.
Comments
Post a Comment