O'Reilly logo

SCJP Sun Certified Programmer for Java 6 Study Guide by Bert Bates, Kathy Sierra

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

Image Study the \d, \s, \w, and. metacharacters

Image regex provides for quantifiers which allow you to specify concepts like: "look for one or more digits in a row."

Image Study the ?, *, and + greedy quantifiers.

Image Remember that metacharacters and Strings don't mix well unless you remember to "escape" them properly. For instance String s = "\\d";

The Pattern and ...

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