It's not a secret anymore!
The moose likes Java in General and the fly likes Java Regular Expressions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Regular Expressions" Watch "Java Regular Expressions" New topic

Java Regular Expressions

Abiodun Okusolubo
Ranch Hand

Joined: Apr 25, 2004
Posts: 72
I need a good book for java regular expressions. The only book found on Amazon is Java Regular Expressions: Taming the java.util.regex Engine (Paperback) by Habibi. The problem is this book has been heavily critized by some of the earlier users. If anyone knows a better book, pls I need some information about it.


SCJP, SCWCD, SCJD : in the making.
Alan Moore
Ranch Hand

Joined: May 06, 2004
Posts: 262
The best book you can get is Mastering Regular Expressions, 2ed., by Jeffrey Friedl. It uses examples from several languages, but it also has a chapter devoted to Java.

There's also a good tutorial at this site. Like the Friedl book, it's language-neutral, but has a page in the reference section devoted to Java.
Abiodun Okusolubo
Ranch Hand

Joined: Apr 25, 2004
Posts: 72
Thank you very much Alan, I'll take a quick look at the text-book at my local library then I can consider buying one.

Max Habibi
town drunk
( and author)

Joined: Jun 27, 2002
Posts: 4118
At the risk of tooting my own horn toot toot, there's also a fairly good regex book, which is primarily focused on Java, out there. While it's true that there have been a few detracting comments recently, the majority of the feedback is very positive, I think(4/5 starts). You can find a link in my signature.

[ August 18, 2005: Message edited by: Max Habibi ]

Java Regular Expressions
I agree. Here's the link:
subject: Java Regular Expressions
jQuery in Action, 3rd edition