This post originated from an RSS feed registered with Java Buzz
by Arpit Mandliya.
Original Post: Java String matches example
Feed Title: Java tutorial for beginners
Feed URL: http://feeds.feedburner.com/arpitmandliyasblog
Feed Description: A blog about java programming language and its frameworks
In this post, we are going to see String’s matches method. String’s matches method String matches method is used to check whether the string is matched with the given regular expression.In normal terms, we can pass various regular expressions to check if the specified string matches with that regular expression.If the matches get successful return true otherwise false. String matches method throws PatternSyntaxException if the given regular expression is not valid. Syntax: How to use matches method: String matches method use regular expression.so, two widely used regular expression meta characters are dot (.) and astrick (*). (.) which matches