O'Reilly logo

Java All-in-One For Dummies, 4th Edition by Doug Lowe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3

Using Regular Expressions

In This Chapter

arrow Introducing regular expressions

arrow Trying out regular expressions with a helpful program

arrow Creating simple expressions that match patterns of characters

arrow Using regular expression features such as custom classes, quantifiers, and groups

arrow Using regular expressions with the String class

arrow Using the Pattern and Matcher classes for more-extensive regular expressions

Regular expressions are not expressions that have a lot of fiber in their diet. Instead, a regular expression is a special type of pattern-matching string that can be very useful for programs that do string manipulation. Regular expression strings contain special pattern-matching characters that can be matched against another string to see whether the other string fits the pattern. Regular expressions are very handy for doing complex data validation — for making sure that users enter ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required