home
search
help
profile
liking the experience? our app is even better
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now  
showing results for java type special character
1Pattern p = Pattern.compile("[^a-z0-9 ]", Pattern.CASE_INSENSITIVE);
2Matcher m = p.matcher("I am a string");
3boolean b = m.find();
4
5if (b)
6   System.out.println("There is a special character in my string");
upvote
downvote