I have regular expression to validate number digits and -. I am now supporting mutibyte characters as well. So I have used unicode class to support but Its not matching. Can some one enlighten me on this
public class Test123 {
public static void main(String[] args) {
String test="熏肉еконcarácterbañlácaractères" ;
Pattern pattern = Pattern.compile("^[a-zA-Z0-9_-]*$",Pattern.UNICODE_CHARACTER_CLASS);
Matcher matcher = pattern.matcher(test);
if(matcher.matches())
{
System.out.println("matched");
}
else{
System.out.println("not matched");
}
}
}