Skip to content

Java Regular Expressions Taming the Java. Util. Regex Engine

Best in textbook rentals since 2012!

ISBN-10: 1590591070

ISBN-13: 9781590591079

Edition: 2004

Authors: Mehran Habibi

List price: $39.99
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

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 new 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 expressionsemdash;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…    
Customers also bought

Book details

List price: $39.99
Copyright year: 2004
Publisher: Apress L. P.
Publication date: 2/11/2004
Binding: Paperback
Pages: 280
Size: 7.01" wide x 9.25" long x 0.75" tall
Weight: 1.804

About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Regular Expressions
The Building Blocks of Regular Expressions
Creating Patterns
Introducing the Regular Expression Syntax
Integrating Java with Regular Expressions
Regular Expression Operations
Comparing Regex and Perl
Summary
Introduction to the Java.util.regex Object Model
The Pattern Object
The Matcher Object
New String Rejex-Friendly Methods
Summary
Advanced Regex
Understanding Groups
Understanding Subgroups
Accessing Subgroups
Noncapturing Subgroups
Back References
Greedy Qualifiers
Possessive Qualifiers
Reluctant Qualifiers
Understanding Lookarounds
Zen and the Art of Efficient Expressions
Summary
Object-Oriented Regex
Optimize Your Connections
Batch Reads and Writes
Store Your Patterns Externally
Compile Your Patterns As You Need To
Don't Limit Yourself to a Regex Solution
Summary
Practical Examples
Confirming the Format of a Phone Number
Confirming Zip Codes
Confirming Date Formats
Searching a String
Searching a File
Modifying the Contents of a File
Extracting Phone Numbers from a File
Searching a Directory for a File That Contains a Regex Expression
Validating an EDI Document
Summary
Regular Expression Reference
Pattern and Matcher Methods
Pattern Class Fields
Pattern Class Methods
Method Class Methods
Common Regex Patterns
Index