12.4. Regular Expressions

Pattern matching using regular expressions is a powerful technique for advanced splitting and fetching of content from strings. C# provides classes in the System.Text namespace for doing pattern matching.

Note that this section assumes that you know the basics of pattern matching. If you are new to pattern matching, you should take a look at perl.com for introductory material. A detailed discussion of regular expression techniques is beyond the scope of this book. If you would like to explore regular expressions, we recommend the book Mastering Regular Expressions, by Jeffrey E.F. Friedl (O'Reilly, 2002).

As of JDK 1.3, Java did not have a built-in pattern matching API. However, JDK 1.4 has support for pattern matching. ...

Get .NET for Java Developers: Migrating to C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.