,

Regular Expressions Cookbook

Detailed Solutions in Eight Programming Languages

Paperback Engels 2012 2e druk 9781449319434
€ 70,07
Levertijd ± 16 werkdagen
Gratis verzonden

Samenvatting

Take the guesswork out of using regular expressions. With more than 140 practical recipes, this cookbook provides everything you need to solve a wide range of real-world problems. Novices will learn basic skills and tools, and programmers and experienced users will find a wealth of detail. Each recipe provides samples you can use right away.

This revised edition covers the regular expression flavors used by C#, Java, JavaScript, Perl, PHP, Python, Ruby, and VB.NET. You'll learn powerful new tricks, avoid flavor-specific gotchas, and save valuable time with this huge library of practical solutions.

- Learn regular expressions basics through a detailed tutorial
- Use code listings to implement regular expressions with your language of choice
- Understand how regular expressions differ from language to language
- Handle common user input with recipes for validation and formatting
- Find and manipulate words, special characters, and lines of text
- Detect integers, floating-point numbers, and other numerical formats
- Parse source code and process log files
- Use regular expressions in URLs, paths, and IP addresses
- Manipulate HTML, XML, and data exchange formats
- Discover little-known regular expression tricks and techniques

Specificaties

ISBN13:9781449319434
Taal:Engels
Bindwijze:paperback
Aantal pagina's:594
Uitgever:O'Reilly
Druk:2
Hoofdrubriek:IT-management / ICT

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Over Jan Goyvaerts

Jan Goyvaerts runs Just Great Software, where he designs and develops some of the most popular regular expression software. His products include RegexBuddy, the world's only regular expression editor that emulates the peculiarities of 15 regular expression flavors, and PowerGREP, the most feature-rich grep tool for Microsoft Windows.

Andere boeken door Jan Goyvaerts

Over Steven Levithan

teven Levithan is a leading JavaScript regular expression expert and runs a popular regular expression centric blog. Expanding his knowledge of the regular expression flavor and library landscape has been one of his hobbies for the last several years.

Andere boeken door Steven Levithan

Inhoudsopgave

Preface

1. Introduction to Regular Expressions
-Regular Expressions Defined
-Search and Replace with Regular Expressions
-Tools for Working with Regular Expressions

2. Basic Regular Expression Skills
-Match Literal Text
-Match Nonprintable Characters
-Match One of Many Characters
-Match Any Character
-Match Something at the Start and/or the End of a Line
-Match Whole Words
-Unicode Code Points, Categories, Blocks, and Scripts
-Match One of Several Alternatives
-Group and Capture Parts of the Match
-Match Previously Matched Text Again
-Capture and Name Parts of the Match
-Repeat Part of the Regex a Certain Number of Times
-Choose Minimal or Maximal Repetition
-Eliminate Needless Backtracking
-Prevent Runaway Repetition
-Test for a Match Without Adding It to the Overall Match
-Match One of Two Alternatives Based on a Condition
-Add Comments to a Regular Expression
-Insert Literal Text into the Replacement Text
-Insert the Regex Match into the Replacement Text
-Insert Part of the Regex Match into the Replacement Text
-Insert Match Context into the Replacement Text

3. Programming with Regular Expressions
-Programming Languages and Regex Flavors
-Literal Regular Expressions in Source Code
-Import the Regular Expression Library
-Create Regular Expression Objects
-Set Regular Expression Options
-Test If a Match Can Be Found Within a Subject String
-Test Whether a Regex Matches the Subject String Entirely
-Retrieve the Matched Text
-Determine the Position and Length of the Match
-Retrieve Part of the Matched Text
-Retrieve a List of All Matches
-Iterate over All Matches
-Validate Matches in Procedural Code
-Find a Match Within Another Match
-Replace All Matches
-Replace Matches Reusing Parts of the Match
-Replace Matches with Replacements Generated in Code
-Replace All Matches Within the Matches of Another Regex
-Replace All Matches Between the Matches of Another Regex
-Split a String
-Split a String, Keeping the Regex Matches
-Search Line by Line
-Construct a Parser

4. Validation and Formatting
-Validate Email Addresses
-Validate and Format North American Phone Numbers
-Validate International Phone Numbers
Afgekapt op 60 regels
€ 70,07
Levertijd ongeveer 16 werkdagen
Gratis verzonden

Producten

    Auteurs

      Trefwoorden

        Artikelen

          Regular Expressions Cookbook