Matcher matcher = Pattern.compile( "[\\u005C/:\\u002A\\u003F\"<>\'\\u007C’‘“”:?]" ).matcher( name ); while ( matcher.find() ) { }