Introducing Regular ExpressionsIf you’re a programmer new to regular expressions, this easy-to-follow guide is a great place to start. You’ll learn the fundamentals step-by-step with the help of numerous examples, discovering first-hand how to match, extract, and transform text by matching specific words, characters, and patterns. Regular expressions are an essential part of a programmer’s toolkit, available in various Unix utlilities as well as programming languages such as Perl, Java, JavaScript, and C#. When you’ve finished this book, you’ll be familiar with the most commonly used syntax in regular expressions, and you’ll understand how using them will save you considerable time.
|
What people are saying - Write a review
We haven't found any reviews in the usual places.
Contents
Chapter 1 What Is a Regular Expression? | 1 |
Chapter 2 Simple Pattern Matching | 13 |
Chapter 3 Boundaries | 31 |
Chapter 4 Alternation Groups and Backreferences | 43 |
Chapter 5 Character Classes | 55 |
Chapter 6 Matching Unicode and Other Characters | 63 |
Chapter 7 Quantifiers | 75 |
Chapter 8 Lookarounds | 83 |
Other editions - View all
Common terms and phrases
ANCYENT MARINERE ASCII ascii.txt backreference backtracking basic regular expressions brackets browser capturing group character class character shorthand code point command line control characters Cygwin desktop DOCTYPE dotall editor end-tag example expression which matches extended regular expressions Figure greedy match grep hexadecimal highlighted hyphen Java Ken Thompson Latin capital letter Latin small letter lazy match lookahead Lookarounds match characters match digits matches any character metacharacters multiline negative lookahead newline non-capturing group non-word boundaries null character O’Reilly ofthe option output parentheses pattern PCRE pcregrep perl ne print poem positive lookahead POSIX POSIX character classes possessive match possessive quantifiers punctuation RegExr Reggy regular ex regular expressions rime.txt Roman numerals Safari Books Online sed command space start-tag string literal subpattern syntax Table tags Technical Notes text box TextMate the|The|THE Unicode Unicode character Unix uppercase want to match whitespace Whitespace characters word boundary xsl:template zero