Java Regular Expressions: Taming the java.util.regex Engine and over 900,000 other books are available for Amazon Kindle . Learn more


or
Sign in to turn on 1-Click ordering.
or
Amazon Prime free trial required. Sign up when you check out. Learn more
More Buying Choices
Have one to sell? Sell yours here
or
Get a £1.00 Amazon.co.uk Gift Card
Java Regular Expressions: Taming the Java.util.regex Engine (Expert's Voice)
 
 
Start reading Java Regular Expressions: Taming the java.util.regex Engine on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Java Regular Expressions: Taming the Java.util.regex Engine (Expert's Voice) [Paperback]

Mehran Habibi
4.5 out of 5 stars  See all reviews (4 customer reviews)
RRP: £28.50
Price: £27.07 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
You Save: £1.43 (5%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In stock.
Dispatched from and sold by Amazon.co.uk. Gift-wrap available.
Only 1 left in stock--order soon (more on the way).
Want guaranteed delivery by Tuesday, February 14? Choose Express delivery at checkout. See Details

Formats

Amazon Price New from Used from
Kindle Edition £20.30  
Paperback £27.07  
Trade In this Item for up to £1.00
Trade in Java Regular Expressions: Taming the Java.util.regex Engine (Expert's Voice) for an Amazon.co.uk gift card of up to £1.00, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Find more products eligible for trade-in.

Customers Who Bought This Item Also Bought


Product details

  • Paperback: 256 pages
  • Publisher: APRESS (1 Mar 2004)
  • Language English
  • ISBN-10: 1590591070
  • ISBN-13: 978-1590591079
  • Product Dimensions: 23.8 x 18 x 1.9 cm
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (4 customer reviews)
  • Amazon Bestsellers Rank: 1,064,916 in Books (See Top 100 in Books)
  • See Complete Table of Contents

Product Description

Product Description

Java has always been an excellent language for working with objects. But Java's text manipulation mechanisms have always been limited, compared to languages like AWK and Perl. On the flip side, a regular expressions package in Java 2 Standard Edition (J2SE) brings hope to the Java text mechanisms. This package provides you everything necessary to use regular expressions—all packaged in a simplified object-oriented framework.

In addition to working examples and best practices, this book features a detailed API reference with examples supporting nearly every method, and a step-by-step tutorial to create your own regular expressions. With time, you'll discover that regular expressions are extremely powerful in your programming arsenal—and you'll enjoy using them! And once you've mastered these tools, you'll wonder how you ever managed without them!

About the Author

Mehran Habibi is an Application Architect for BankOne in Columbus, Ohio, where he resides with his lovely wife, Angela. Mehran has over eight years of IT experience, including positions with UUNET, Executive Jet, IBM, and OCLC. He has also worked as a university lecturer, national and international speaker, independent consultant, and Java certification instructor. Technologies of interest include Web Services, wireless tech, Java, and yes, C#. Mehran's professional focus is on architecture, XP team integration, technology leadership, and mentoring. He was a member of the honors program at The Ohio State University, graduated with a bachelor's degree in software engineering, and holds certifications in VC++, SCJP, and the SCJD.

Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

Tag this product

 (What's this?)
Think of a tag as a keyword or label you consider is strongly related to this product.
Tags will help all customers organise and find favourite items.
Your tags: Add your first tag
 

 

Customer Reviews

4 Reviews
5 star:
 (3)
4 star:    (0)
3 star:
 (1)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.5 out of 5 stars (4 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

3 of 3 people found the following review helpful:
3.0 out of 5 stars Not perfect, but useful for Java developers new to reg. expr, 26 Jan 2005
By 
Jan Goyvaerts "regex guru" (Thailand) - See all my reviews
(REAL NAME)   
This review is from: Java Regular Expressions: Taming the Java.util.regex Engine (Expert's Voice) (Paperback)
The book consists of 250 pages of wide-spaced text, split into 5 chapters. The first chapter is an introduction to regular expressions, explaining basic regular expression syntax. The book's pace is relatively slow, which may suit some people but not others. It doesn't explain many of the "gotcha's" or differences between regex flavors. Clearly, this book is aimed at people who are relatively new to regular expressions, and only plan to use them with Java.

The second chapter is the most useful part of the book. It describes all the classes in the java.util.regex package, and nearly all of their methods. Most of the descriptions come with example Java source code illustrating its use. If you prefer to learn by reading Java source code rather than English, you'll appreciate these code snippets.

The third chapter explains advanced regular expression syntax, such as lazy and possessive quantifiers (called "qualifiers" in the book), and lookaround. Unfortunately, the quality of the book starts to go downhill from here. Minor errors such as using alternation (I|i)ce instead of a far more efficient character class [Ii]ce (page 104) or stating that \d represents a digit in the replacement text (page 107; \d only works in the regex, not in the replacement) could be attributed to sloppy editing. But the example that was intended to explain positive lookahead (page 130) is simply wrong. The regex (?=^255).* does exactly what ^255.* does. The crucial aspect of lookahead (it doesn't consume the text it matches) is completely irrelevant in this example.

The fourth chapter could have easily been omitted from the book. It talks more about object-oriented programming techniques than about regular expressions. Some of the advice is questionable. The author suggests storing regular expressions in external files, so they can be edited without recompiling the application. The problem with this advice is that the regular expressions will then sit in an external file without context, making them much harder to understand. It contradicts the books key selling point: most concepts are explained with regexes used in Java code. If another programmer has to maintain the code later, a better idea is to use a tool such as RegexBuddy to insert a detailed English description as a Java comment into the Java source code (RegexBuddy generates them on the Use tab).

The fifth chapter presents you with several more elaborate examples performing a number of real-world tasks with regular expressions in Java. While the examples are relatively simple, they do bring everything together nicely.

Should you buy this book? While it's definitely not perfect, I would recommend this book to Java developers who are experienced with Java, but have little or no experience with regular expressions. The book's description of the java.util.regex package is far more detailed than documentation included with the JDK. But to learn the ins and outs of the regular expression syntax itself, you'll need to complement this book with another resource

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
5.0 out of 5 stars Excellent tutorial and reference, 3 April 2004
By 
Thomas Paul (Plainview, NY USA) - See all my reviews
(REAL NAME)   
This review is from: Java Regular Expressions: Taming the Java.util.regex Engine (Expert's Voice) (Paperback)
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.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


1 of 1 people found the following review helpful:
5.0 out of 5 stars This is not your father’s procedural regex reference., 29 Feb 2004
By 
This review is from: Java Regular Expressions: Taming the Java.util.regex Engine (Expert's Voice) (Paperback)
I've had this book a bit over a day. Yes, I've read the entire book. It is that good.

As I first approached it, I was afraid of this book. It's so easy to explain regular expressions in terribly dry and technical ways. Max, the author, doesn't do that.

Don't fear your painful memories of the wordy, boring, and expensive text books read during university studies. This book won't bring them back. Max has again demonstrated his excellent, clear and concise writing skills with Java Regular Expressions.

This book is not some boring reference or cookbook of regular expressions, excellent ones of which can be found for free on the internet. Instead, this book provides excellent explanations detailing techniques on how to understand and create regular expressions – object-oriented techniques at that! This is not your father’s procedural regex reference.

New to java.util.regex? Buy this book, not that other one.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
Would you like to see more reviews about this item?
 Go to Amazon.com to see all 15 reviews  3.9 out of 5 stars 
Were these reviews helpful?   Let us know
 
 
Most Recent Customer Reviews


Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Listmania!

Create a Listmania! list

Look for similar items by category


Look for similar items by subject


Feedback


Amazon.co.uk Privacy Statement Amazon.co.uk Delivery Information Amazon.co.uk Returns & Exchanges