I have the following regex:
String regExpression = "^[a-zA-Z0-9+,. '-]{1,"+maxCharacters+"}$";
which works great for me, except that it doesn't allow the use of UTF-8 diacritics (Ă ă Â Î î Ş ş Ţ ţ).
I only need my current regular expression to accept diacritics in it, other than what it already does.
Any help is appreciated. Thank.
source
share