Book Review of the Month

Java Regular Expressions: Taming the java.util.regex Engine
Mehran Habibi

This book is an excellent introduction to regular expressions in general and the Java regex package in particular. The author assumes that the reader has no experience with regular expressions so even if the subject is completely new to you, you will be able to follow along easily.

The book approaches the topic in a clever way that makes it both an excellent tutorial as well as an excellent reference to keep nearby. The first chapter covers regular expression syntax. The second chapter looks at the two main classes, Pattern and Matcher, and discusses each of the methods in these classes. The way the information is presented makes it a perfect tutorial, as the methods are introduced in a sensible order that allows the detailed discussion to build. At the same time, since each method is discussed with excellent description and examples, it serves as a useful reference. Chapter three looks at some advanced topics such as groups, qualifiers, and lookaheads. In chapter four the author gives us some advice and chapter five demonstrates some useful examples. The books ends with a reference, summarizing the topics discussed in the first two chapters.

Other than a few minor misprints and one slightly confusing group example early on I could find nothing to complain about. Any Java programmer interested in learning regular expressions will find this book extremely useful. It is hard to imagine that there could be a better book on regular expressions than this one.

(Thomas Paul - Sheriff, March 2004)

More info at || More info at

Other books reviewed in March :

Test-Driven Development by Example by Kent Beck
ASP.NET in 60 Minutes a day by Glenn Johnson
VB .NET in 60 Minutes a Day by Bruce Barstow
PHP Bible by Tim Converse, Joyce Park
Enterprise Java Security: Building Secure J2EE Applications by Marco Pistoia, Larry Koved, Anthony Nadalin, Nataraj Nagaratnam
Art of Java Web Development by Neal Ford
Web Services - A Manager's Guide by Ann Thomas Manes
J2EE Open Source Toolkit by John T. Bell, James T. Lambros, Stanford Ng
Java Open Source Programming: with XDoclet, JUnit, WebWork, Hibernate by Joseph Walnes, Ara Abrahamian, Mike Cannon-Brookes, Patrick A. Lightbody
Tapestry In Action by Howard M. Lewis Ship
JavaServer Faces Programming by Budi Kurniawan
Ivor Horton's Beginning ANSI C++ The Complete Language by Ivor Horton
OOP DeMystified by Jim Keogh, Mario Giannini