O'Reilly logo

Java™ Phrasebook by Timothy Fisher

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

6. Pattern Matching with Regular Expressions

Regular expression support was introduced in Java JDK 1.4. Regular expressions specify patterns that can be matched within character sequences. Regular expressions are extremely useful in parsing strings, and will often save a programmer a lot of time and effort in performing a task in comparison to a solution that does not make use of regular expressions. Prior to being added to Java, regular expressions had been used for years by UNIX programmers. Standard UNIX tools such as Sed and Awk make use of regular expressions. Regular expressions are also commonly used in the Perl programming language. The addition of regular expressions to the JDK is a powerful addition to core Java capability.

In this ...

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