Buy New

or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Buy Used
Used - Good See details
$17.98 & eligible for FREE Super Saver Shipping on orders over $25. Details

or
Sign in to turn on 1-Click ordering.
 
   
Sell Back Your Copy
For a $4.41 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Beginning Regular Expressions (Programmer to Programmer)
 
 
Tell the Publisher!
I'd like to read this book on Kindle

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

Beginning Regular Expressions (Programmer to Programmer) [Paperback]

Andrew Watt (Author)
4.5 out of 5 stars  See all reviews (8 customer reviews)

List Price: $57.95
Price: $31.49 & this item ships for FREE with Super Saver Shipping. Details
You Save: $26.46 (46%)
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.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Tuesday, February 14? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for students on millions of items. Learn more

Sell Back Your Copy for $4.41
Whether you buy it used on Amazon for $10.83 or somewhere else, you can sell it back through our Book Trade-In Program at the current price of $4.41.
Used Price$10.83
Trade-in Price$4.41
Price after
Trade-in
$6.42

Book Description

February 4, 2005 0764574892 978-0764574894 1
This book introduces the various parts of the construction of a regular expression pattern, explains what they mean, and walks you through working examples showing how they work and why they do what they do. By working through the examples, you will build your understanding of how to make regular expressions do what you want them to do and avoid creating regular expressions that don’t meet your intentions.
Beginning chapters introduce regular expressions and show you a method you can use to break down a text manipulation problem into component parts so that you can make an intelligent choice about constructing a regular expression pattern that matches what you want it to match and avoids matching unwanted text.
To solve more complex problems, you should set out a problem definition and progressively refine it to express it in English in a way that corresponds to a regular expression pattern that does what you want it to do.
The second part of the book devotes a chapter to each of several technologies available on the Windows platform. You are shown how to use each tool or language with regular expressions (for example, how to do a lookahead in Perl or create a named variable in C#).
Regular expressions can be useful in applications such as Microsoft Word, OpenOffice.org Writer, Microsoft Excel, and Microsoft Access. A chapter is devoted to each.
In addition, tools such as the little-known Windows findstr utility and the commercial PowerGrep tool each have a chapter showing how they can be used to solve text manipulation tasks that span multiple files.
The use of regular expressions in the MySQL and Microsoft SQL Server databases are also demonstrated.
Several programming languages have a chapter describing the metacharacters available for use in those languages together with demonstrations of how the objects or classes of that language can be used with regular expressions. The languages covered are VBScript, Javascript, Visual Basic .NET, C#, PHP, Java, and Perl.
XML is used increasingly to store textual data. The W3C XML Schema definition language can use regular expressions to automatically validate data in an XML document. W3C XML Schema has a chapter demonstrating how regular expressions can be used with the xs:pattern element.
Chapters 1 through 10 describe the component parts of regular expression patterns and show you what they do and how they can be used with a variety of text manipulation tools and languages. You should work through these chapters in order and build up your understanding of regular expressions.
The book then devotes a chapter to each of several text manipulation tools and programming languages. These chapters assume knowledge from Chapters 1 through 10, but you can dip into the tool-specific and language-specific chapters in any order you want.


Frequently Bought Together

Beginning Regular Expressions (Programmer to Programmer) + Regular Expressions Cookbook + Mastering Regular Expressions
Price For All Three: $85.37

Show availability and shipping details

Buy the selected items together
  • In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Regular Expressions Cookbook $26.80

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Mastering Regular Expressions $27.08

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details



Editorial Reviews

From the Back Cover

Regular expressions help users and developers to find and manipulate text more effectively and efficiently. In addition, regular expressions are supported by many scripting languages, programming languages, and databases. This example-rich tutorial helps debunk the traditional reputation of regular expressions as being cryptic. It explains the various parts of a regular expression pattern, what those parts mean, how to use them, and common pitfalls to avoid when writing regular expressions.

With chapters on using regular expressions with popular Windows platform software including databases, cross platform scripting languages, and programming languages, you'll learn to make effective use of the power provided by regular expressions once you fully comprehend their strengths and potential.

What you will learn from this book

  • Fundamental concepts of regular expressions and how to write them
  • How to break down a text manipulation problem into component parts so you can then logically construct a regular expression pattern
  • How to use regular expressions in several scripting and programming languages and software packages
  • The variations that exist among regular expression dialects
  • Reusable, real-world working code that can be used to solve everyday regular expression problems

Who this book is for

This book is for developers who need to manipulate text but are new to regular expressions. Some basic programming or scripting experience is useful but not required.

About the Author

Andrew Watt is an independent consultant and experienced author with an interest and expertise in XML and Web technologies. He has written and coauthored more than 10 books on Web development and XML, including XPath Essentials and XML Schema Essentials. He has been programming since 1984, moving to Web development technologies in 1994. He’s a well-known voice in several influential online technical communities and is a frequent contributor to many Web development specifications.

Product Details

  • Paperback: 768 pages
  • Publisher: Wrox; 1 edition (February 4, 2005)
  • Language: English
  • ISBN-10: 0764574892
  • ISBN-13: 978-0764574894
  • Product Dimensions: 9.3 x 7.4 x 1.7 inches
  • Shipping Weight: 3.3 pounds (View shipping rates and policies)
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (8 customer reviews)
  • Amazon Best Sellers Rank: #327,960 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

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

22 of 23 people found the following review helpful:
5.0 out of 5 stars Great breadth of languages, tools, and examples, February 2, 2005
This review is from: Beginning Regular Expressions (Programmer to Programmer) (Paperback)
Great breadth of languages, tools, and examples

This is the most comprehensive regular expressions book I have seen. After steering you through some regular expressions essentials (about 250 pages or the first 1/3 of the book) it then gets into specifics and examples for all of the following languages and applications:
StarOffice/OpenOffice.org Writer
Microsoft Word and VBA for Microsoft Word
Findstr
PowerGrep
Excel
SQL Server 2000
MySQL
Microsoft Access
JavaScript and JScript
VBScript
VB.NET
C#
PHP
XML Schema
Java
Perl
Most other books I've seen concentrate just on Perl. For anyone who uses 2, 3 or more of these languages or applications (and who doesn't use at least that many) this is much more useful than a Perl reg ex book.
Beyond the list of languages and applications covered, there are numerous examples in every chapter that can easily be used as is, or modified to fit your needs. A few of the examples are:
Converting dates to international format
Finding words in close proximity (in the same sentence)
Cleaning up an online chat transcript
Validating a social security number
Ignoring whitespace
Separating a delimited string into parts
Finding repeated words or characters
Adding links to URLs
Matching Canadian Postal codes
Verifying IP address format
Finding HTML/XHTML header elements
Matching telephone numbers
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


10 of 11 people found the following review helpful:
5.0 out of 5 stars Very Helpful, December 1, 2005
By 
Kat Bakhu (Albuquerque, NM United States) - See all my reviews
(REAL NAME)   
This review is from: Beginning Regular Expressions (Programmer to Programmer) (Paperback)
For years I have wanted to learn how to use Regular Expressions. But the short tutorials that I came across left me double cross eyed perplexed! I finally came across Beginning Regular Expressions. Now the whole process is a piece of cake. The author takes a very cryptic subject and makes it totally clear. Within two hours of reading this book while laying on the couch, I was able to hop up and write cryptic looking formulas as if it was my second nature. Regular expressions are so powerful and so helpful. I'm so glad I finally came across this book. Thanks to the author who painstakingly broke it down to the most basic levels and made everything crystal clear! If you have an interest in POWERFUL search and replace across a lot of files, this book is your ticket to search and replace paradise!
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


5 of 5 people found the following review helpful:
5.0 out of 5 stars Excellent Introduction to Regular Expressions, April 19, 2005
By 
Richard York (Camby, IN United States) - See all my reviews
(REAL NAME)   
This review is from: Beginning Regular Expressions (Programmer to Programmer) (Paperback)
As an introduction to regular expressions, this book does an excellent job of covering the many different ways in which regular expressions are used. Included are explanations of how to put regular expressions to use in client-side Javascript, Microsoft Word, Open Office, C#, PHP, Perl, ASP, etc (Just a few that I could think of off the top of my head). I especially like that the author didn't focus on only Microsoft products, or only on open source products. He gives an excellent introduction to how regular expressions fit in in both the world of programming, and simply using your computer from day to day. This is a huge book, and Mr. Watt does a fantastic job of covering both syntax (nuts and bolts) and real-world application. This is an excellent starting point for anyone wanting to more about Regular Expressions.
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
 
 
 
Most Recent Customer Reviews






Only search this product's reviews



Inside This Book (learn more)
First Sentence:
Text is a crucial part of many people's work with computers. Read the first page
Key Phrases - Statistically Improbable Phrases (SIPs): (learn more)
findstr utility, positional metacharacters, more numeric digits, negated character class, successive numeric digits, literal period character, regular expression functionality, following regular expression pattern, positive lookbehind, enter the test string, following test text, wildcard functionality, zero numeric digits, negative lookbehind, metacharacter signifies, regular expression implementations, negative lookahead, three numeric digits, lookahead constraint, matching character sequence, two numeric digits, positive lookahead, character class ranges, regular expression tools, alphabetic character sequence
Key Phrases - Capitalized Phrases (CAPs): (learn more)
Microsoft Word, Star Training Company, Internet Explorer, Visual Basic, Find Next, Visual Studio, Metacharacter Description, Query Analyzer, British English, Moon Training, Social Security, Character Map, End If End Function, Imports System, Method Description, Sub Main, Next Console, Set Matches, Collapse Direction, End Sub End Module, Use Ctrl, Character Classes Figure, United States, Enterprise Manager, Enter Parameter Value
New!
Books on Related Topics | Concordance | Text Stats
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:




What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

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
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums



So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject