Skip to content
Scan a barcode
Scan
Paperback Beginning Regular Expressions Book

ISBN: 0764574892

ISBN13: 9780764574894

Beginning Regular Expressions

Select Format

Select Condition ThriftBooks Help Icon

Recommended

Format: Paperback

Condition: Very Good

$6.29
Save $51.66!
List Price $57.95
Almost Gone, Only 2 Left!

Book Overview

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.

Customer Reviews

5 ratings

A very thorough book on regex

I already know regex fairly well and thought I could learn a few more things by reading this book. Turns out, there are way more things to learn about regex than I really wanted to. I started learning new things right away with this book, but soon realized that mastering this topic would mean giving up mastery on another. A great book if you really need to get into complex regex.

Very Helpful

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!

Excellent Introduction to Regular Expressions

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.

Good Description of what I've Been Doing But Didn't Know It

I picked this book up because I had no idea just what a Regular Expression was. Turns out that regular expressions are nothing more than the "wildcards" from a lot of applications like Microsoft Word that have been generalized to fit a lot of applications in text processing. For instance you may want to examine an incoming field from an internet form. If the data is going to a social security column in a database, you want to be sure that the data doesn't say something like Fred-34-1234. It's the right format, but alpha isn't a good thing to have there. If this isn't checked form, it may wait until the SQL Insert statement blows up. The generalized form of expressions like this can be used to check things like SSN formats, the proper formation of an e-mail address and a lot of other things commonly needed in text processing. Many languages both programming and scripting have provisions built into them to handle this kind of text processing. This book provides the generalized background to use regular expressions in ways that that you haven't considered but which you'll find very useful.

Great breadth of languages, tools, and examples

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
Copyright © 2025 Thriftbooks.com Terms of Use | Privacy Policy | Do Not Sell/Share My Personal Information | Cookie Policy | Cookie Preferences | Accessibility Statement
ThriftBooks ® and the ThriftBooks ® logo are registered trademarks of Thrift Books Global, LLC
GoDaddy Verified and Secured