Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn about regex, or regular expressions, and how to work with them in Java.
A regex, or regular expression, is a pattern represented by a sequence of characters. They’re used in search engines, word processors, text editors, and many other places due to their general use cases and base functionality. Many programming languages provide regex capabilities either from libraries or built straight into the language. Java is one such language that has an entire package dedicated to regex.
* Use quantifiers
* Implement the Pattern and Matcher classes
* Use capture groups and escape characters
A regex, or regular expression, is a pattern represented by a sequence of characters. They’re used in search engines, word processors, text editors, and many other places due to their general use cases and base functionality. Many programming languages provide regex capabilities either from libraries or built straight into the language. Java is one such language that has an entire package dedicated to regex.
* Use quantifiers
* Implement the Pattern and Matcher classes
* Use capture groups and escape characters