Cover image for Beginning Regular Expressions.
Beginning Regular Expressions.
Title:
Beginning Regular Expressions.
Author:
Watt, Andrew.
ISBN:
9780764595745
Personal Author:
Edition:
1st ed.
Physical Description:
1 online resource (770 pages)
Contents:
Beginning Regular Expressions -- Dedication -- Acknowledgments -- Credits -- Contents -- Introduction -- Who This Book Is For -- What This Book Covers -- How This Book Is Structured -- What You Need to Use This Book -- Conventions -- Source Code -- Errata -- p2p. wrox. com -- Chapter 1: Introduction to Regular Expressions -- What Are Regular Expressions? -- What Can Regular Expressions Be Used For? -- Regular Expressions You Already Use -- Why Regular Expressions Seem Intimidating -- The Languages That Support Regular Expressions -- Replacing Text in Quantity -- Chapter 2: Regular Expression Tools and an Approach to Using Them -- Regular Expression Tools -- Language-and Platform-Specific Tools -- An Analytical Approach to Using Regular Expressions -- Chapter 3: Simple Regular Expressions -- Matching Single Characters -- Matching Optional Characters -- Other Cardinality Operators -- The Curly-Brace Syntax -- Exercises -- Chapter 4: Metacharacters and Modifiers -- Regular Expression Metacharacters -- Whitespace and Non-Whitespace Metacharacters -- Modifiers -- Exercises -- Chapter 5: Character Classes -- Introduction to Character Classes -- Using Ranges in Character Classes -- Metacharacter Meaning within Character Classes -- Negated Character Classes -- POSIX Character Classes -- Exercises -- Chapter 6: String, Line, and Word Boundaries -- String, Line, and Word Boundaries -- What Is a Word? -- Identifying Word Boundaries -- Exercises -- Chapter 7: Parentheses in Regular Expressions -- Grouping Using Parentheses -- Alternation -- Capturing Parentheses -- Non-Capturing Parentheses -- Back References -- Exercises -- Chapter 8: Lookahead and Lookbehind -- Why You Need Lookahead and Lookbehind -- Lookahead -- Positive Lookahead Examples -- Lookbehind -- How to Match Positions -- Exercises.

Chapter 9: Sensitivity and Specificity of Regular Expressions -- What Are Sensitivity and Specificity? -- The Sensitivity/Specificity Trade-Off -- How Metacharacters Affect Sensitivity and Specificity -- Knowing the Data, Sensitivity, and Specificity -- Revisiting the Star Training Company Example -- Exercises -- Chapter 10: Documenting and Debugging Regular Expressions -- Documenting Regular Expressions -- Know Your Data -- Creating Test Cases -- Debugging Regular Expressions -- Chapter 11: Regular Expressions in Microsoft Word -- The User Interface -- Metacharacters Available -- Examples -- Search-and-Replace Examples -- Regular Expressions in Visual Basic for Applications -- Exercises -- Chapter 12: Regular Expressions in StarOffice/OpenOffice. org Writer -- The User Interface -- Metacharacters Available -- Search Example -- Search-and-Replace Example -- POSIX Character Classes -- Exercises -- Chapter 13: Regular Expressions Using findstr -- Introducing findstr -- Metacharacters Supported by findstr -- Word-Boundary Positions -- Beginning-and End-of-Line Positions -- Single File Examples -- Multiple File Example -- A Filelist Example -- Exercises -- Chapter 14: PowerGREP -- The PowerGREP Interface -- Metacharacters Supported -- Longer Examples -- Exercises -- Chapter 15: Wildcards in Microsoft Excel -- The Excel Find Interface -- The Wildcards Excel Supports -- Using Wildcards in Data Forms -- Using Wildcards in Filters -- Exercises -- Chapter 16: Regular Expression Functionality in SQL Server 2000 -- Metacharacters Supported -- Using LIKE with Regular Expressions -- Negated Character Classes -- Using Full-Text Search -- Document Filters on Image Columns -- Exercises -- Chapter 17: Using Regular Expressions with MySQL -- Getting Started with MySQL -- The Metacharacters MySQL Supports -- Using the REGEXP Keyword and Metacharacters.

Social Security Number Example -- Exercises -- Chapter 18: Regular Expressions and Microsoft Access -- The Interface to Metacharacters in Microsoft Access -- The Metacharacters Supported in Access -- Using the # Metacharacter -- Using the # Character with Date/Time Data -- Using Character Classes in Access -- Exercises -- Chapter 19: Regular Expressions in JScript and JavaScript -- Using Regular Expressions in JavaScript and JScript -- Metacharacters in JavaScript and JScript -- Documenting JavaScript Regular Expressions -- SSN Validation Example -- Exercises -- Chapter 20: Regular Expressions and VBScript -- The RegExp Object and How to Use It -- Using the Match Object and the Matches Collection -- Supported Metacharacters -- Exercises -- Chapter 21: Visual Basic . NET and Regular Expressions -- The System. Text. RegularExpressions namespace -- The Metacharacters Supported in Visual Basic . NET -- Exercises -- Chapter 22: C# and Regular Expressions -- The Classes of the System. Text . RegularExpressions namespace -- Metacharacters Supported in Visual C# . NET -- Exercise -- Chapter 23: PHP and Regular Expressions -- Getting Started with PHP 5.0 -- How PHP Structures Support for Regular Expressions -- The Metacharacters Supported in PHP -- Exercises -- Chapter 24: Regular Expressions in W3C XML Schema -- W3C XML Schema Basics -- Exercises -- Chapter 25: Regular Expressions in Java -- Introduction to the java. util. regex Package -- Metacharacters Supported in the java. util. regex Package -- Using Methods of the String Class -- Exercises -- Chapter 26: Regular Expressions in Perl -- Obtaining and Installing Perl -- Basics of Perl Regular Expression Usage -- Using the Perl Regular Expression Operators -- The Metacharacters Supported in Perl -- Using the Regular Expression Matching Modes in Perl -- A Simple Perl Regex Tester -- Exercises.

Appendix A: Exercise Answers -- Index.
Abstract:
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.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: