
Introducing Regular Expressions
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Copyright
- Table of Contents
- Preface
- Who Should Read This Book
- What You Need to Use This Book
- Conventions Used in This Book
- Using Code Examples
- Safari® Books Online
- How to Contact Us
- Acknowledgments
- Chapter 1. What Is a Regular Expression?
- Getting Started with Regexpal
- Matching a North American Phone Number
- Matching Digits with a Character Class
- Using a Character Shorthand
- Matching Any Character
- Capturing Groups and Back References
- Using Quantifiers
- Quoting Literals
- A Sample of Applications
- What You Learned in Chapter 1
- Technical Notes
- Chapter 2. Simple Pattern Matching
- Matching String Literals
- Matching Digits
- Matching Non-Digits
- Matching Word and Non-Word Characters
- Matching Whitespace
- Matching Any Character, Once Again
- Marking Up the Text
- Using sed to Mark Up Text
- Using Perl to Mark Up Text
- What You Learned in Chapter 2
- Technical Notes
- Chapter 3. Boundaries
- The Beginning and End of a Line
- Word and Non-word Boundaries
- Other Anchors
- Quoting a Group of Characters as Literals
- Adding Tags
- Adding Tags with sed
- Adding Tags with Perl
- What You Learned in Chapter 3
- Technical Notes
- Chapter 4. Alternation, Groups, and Backreferences
- Alternation
- Subpatterns
- Capturing Groups and Backreferences
- Named Groups
- Non-Capturing Groups
- Atomic Groups
- What You Learned in Chapter 4
- Technical Notes
- Chapter 5. Character Classes
- Negated Character Classes
- Union and Difference
- POSIX Character Classes
- What You Learned in Chapter 5
- Technical Notes
- Chapter 6. Matching Unicode and Other Characters
- Matching a Unicode Character
- Using vim
- Matching Characters with Octal Numbers
- Matching Unicode Character Properties
- Matching Control Characters
- What You Learned in Chapter 6
- Technical Notes
- Chapter 7. Quantifiers
- Greedy, Lazy, and Possessive
- Matching with *, +, and ?
- Matching a Specific Number of Times
- Lazy Quantifiers
- Possessive Quantifiers
- What You Learned in Chapter 7
- Technical Notes
- Chapter 8. Lookarounds
- Positive Lookaheads
- Negative Lookaheads
- Positive Lookbehinds
- Negative Lookbehinds
- What You Learned in Chapter 8
- Technical Notes
- Chapter 9. Marking Up a Document with HTML
- Matching Tags
- Transforming Plain Text with sed
- Substitution with sed
- Handling Roman Numerals with sed
- Handling a Specific Paragraph with sed
- Handling the Lines of the Poem with sed
- Appending Tags
- Using a Command File with sed
- Transforming Plain Text with Perl
- Handling Roman Numerals with Perl
- Handling a Specific Paragraph with Perl
- Handling the Lines of the Poem with Perl
- Using a File of Commands with Perl
- What You Learned in Chapter 9
- Technical Notes
- Chapter 10. The End of the Beginning
- Learning More
- Notable Tools, Implementations, and Libraries
- Perl
- PCRE
- Ruby (Oniguruma)
- Python
- RE2
- Matching a North American Phone Number
- Matching an Email Address
- What You Learned in Chapter 10
- Appendix A. Regular Expression Reference
- Regular Expressions in QED
- Metacharacters
- Character Shorthands
- Whitespace
- Unicode Whitespace Characters
- Control Characters
- Character Properties
- Script Names for Character Properties
- POSIX Character Classes
- Options/Modifiers
- ASCII Code Chart with Regex
- Technical Notes
- Regular Expression Glossary
- Index
- About the Author
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.