Learning Regular Expressions, 1st edition

Published by Addison-Wesley Professional (May 15, 2018) © 2018

  • Ben Forta
Products list

Details

  • A print text
  • Free shipping
  • Also available for purchase as an ebook from all major ebook resellers, including InformIT.com

This product is expected to ship within 3-6 business days for US and 5-10 business days for Canadian customers.

Title overview

Regular expressions can make virtually every developer more productive, but many programmers don’t use them because they’ve never learned how. In Learning Regular Expressions, best-selling author Ben Forta solves that problem. Forta’s expert tutorial organizes regex into a series of easy-to-follow hands-on lessons focused on solving the specific problems you’re likely to encounter most often. Instead of dwelling on syntax, terminology, and arcane scenarios, he guides you through concepts and techniques you’ll use every day -- starting with simple text matches and working up to powerful backreferences, conditional evaluation, and look-ahead processing. Forta’s clear, practical examples are implemented in multiple languages, so you can find code you can immediately use to get the job done.

Table of contents

Introduction 1

Chapter 1 Introducing Regular Expressions 3

Understanding the Need 3

How Regular Expressions Are Used 4

RegEx Searches 4

RegEx Replaces 5

So What Exactly Is a Regular Expression? 5

Using Regular Expressions 6

Before You Get Started 7

Summary 7

Chapter 2 Matching Single Characters 9

Matching Literal Text 9

How Many Matches? 10

Handling Case Sensitivity 10

Matching Any Characters 11

Matching Special Characters 14

Summary 16

Chapter 3 Matching Sets of Characters 17

Matching One of Several Characters 17

Using Character Set Ranges 20

“Anything But” Matching 23

Summary 24

Chapter 4 Using Metacharacters 25

Need help?Get in touch