Regular Expressions Cookbook - Jan Goyvaerts
Regular Expressions Cookbook
Autor:
Jan Goyvaerts, Steven Levithan
Verlag:
O'Reilly Media, Inc, USA
Jahr:
2009
Seiten:
510 Seiten
Produktart:
Buch / Softcover
ISBN/EAN:
978-0-596-52068-7
Maße:
180 x 235 mm / 842 g
Abbildungen:
1, black & white illustrations
Listenpreis:
£ 34,50 (GBP); $ 44,99 (USD)
Sprache:
englisch
Kategorie:
NET Programmierung
ISBN-10:
0-596-52068-9 / 0596520689
ISBN-13:
978-0-596-52068-7 / 9780596520687
Kundenbewertung:
Weitere Informationen von "Regular Expressions Cookbook":
Offers more than a hundred recipes to help programmers use regular expressions to manipulate text and crunch data. This book helps you: learn how to validate and format input; manage words, lines, special characters, and numerical values; and, find solutions for using regular expressions in URLs, paths, markup, and data exchange.
This cookbook provides more than 100 recipes to help you crunch data and manipulate text with regular expressions. Every programmer can find uses for regular expressions, but their power doesn't come worry-free. Even seasoned users often suffer from poor performance, false positives, false negatives, or perplexing bugs. Regular Expressions Cookbook offers step-by-step instructions for some of the most common tasks involving this tool, with recipes for C#, Java, JavaScript, Perl, PHP, Python, Ruby, and VB.NET.
With this book, you will: * Understand the basics of regular expressions through a concise tutorial * Use regular expressions effectively in several programming and scripting languages * Learn how to validate and format input * Manage words, lines, special characters, and numerical values * Find solutions for using regular expressions in URLs, paths, markup, and data exchange * Learn the nuances of more advanced regex features * Understand how regular expressions' APIs, syntax, and behavior differ from language to language * Write better regular expressions for custom needs Whether you're a novice or an experienced user, Regular Expressions Cookbook will help deepen your knowledge of this unique and irreplaceable tool. You'll learn powerful new tricks, avoid language-specific gotchas, and save valuable time with this huge library of proven solutions to difficult, real-world problems.
Über den Autor:
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. Steven Levithan is a leading JavaScript regular expression expert and runs a popular regular expression centric blog at http://blog.stevenlevithan.com. Expanding his knowledge of the regular expression flavor and library landscape has been one of his hobbies for the last several years.
Inhaltsverzeichnis von "Regular Expressions Cookbook":
Inhaltsverzeichnis
div id="toc-content">
* Chapter 1 Introduction to Regular Expressions
* Regular Expressions Defined
* Searching and Replacing with Regular Expressions
* Tools for Working with Regular Expressions
* Chapter 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, Properties, 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
* Chapter 3 Programming with Regular Expressions
* Programming Languages and Regex Flavors
* Literal Regular Expressions in Source Code
* Import the Regular Expression Library
* Creating Regular Expression Objects
* Setting Regular Expression Options
* Test Whether 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
* Chapter 4 Validation and Formatting
* Validate Email Addresses
* Validate and Format North American Phone Numbers
* Validate International Phone Numbers
* Validate Traditional Date Formats
* Accurately Validate Traditional Date Formats
* Validate Traditional Time Formats
* Validate ISO 8601 Dates and Times
* Limit Input to Alphanumeric Characters
* Limit the Length of Text
* Limit the Number of Lines in Text
* Validate Affirmative Responses
* Validate Social Security Numbers
* Validate ISBNs
* Validate ZIP Codes
* Validate Canadian Postal Codes
* Validate U.K. Postcodes
* Find Addresses with Post Office Boxes
* Reformat Names From “FirstName LastName” to “LastName,
FirstName”
* Validate Credit Card Numbers
* European VAT Numbers
* Chapter 5 Words, Lines, and Special Characters
* Find a Specific Word
* Find Any of Multiple Words
* Find Similar Words
* Find All Except a Specific Word
* Find Any Word Not Followed by a Specific Word
* Find Any Word Not Preceded by a Specific Word
* Find Words Near Each Other
* Find Repeated Words
* Remove Duplicate Lines
* Match Complete Lines That Contain a Word
* Match Complete Lines That Do Not Contain a Word
* Trim Leading and Trailing Whitespace
* Replace Repeated Whitespace with a Single Space
* Escape Regular Expression Metacharacters
* Chapter 6 Numbers
* Integer Numbers
* Hexadecimal Numbers
* Binary Numbers
* Strip Leading Zeros
* Numbers Within a Certain Range
* Hexadecimal Numbers Within a Certain Range
* Floating Point Numbers
* Numbers with Thousand Separators
* Roman Numerals
* Chapter 7 URLs, Paths, and Internet Addresses
* Validating URLs
* Finding URLs Within Full Text
* Finding Quoted URLs in Full Text
* Finding URLs with Parentheses in Full Text
* Turn URLs into Links
* Validating URNs
* Validating Generic URLs
* Extracting the Scheme from a URL
* Extracting the User from a URL
* Extracting the Host from a URL
* Extracting the Port from a URL
* Extracting the Path from a URL
* Extracting the Query from a URL
* Extracting the Fragment from a URL
* Validating Domain Names
* Matching IPv4 Addresses
* Matching IPv6 Addresses
* Validate Windows Paths
* Split Windows Paths into Their Parts
* Extract the Drive Letter from a Windows Path
* Extract the Server and Share from a UNC Path
* Extract the Folder from a Windows Path
* Extract the Filename from a Windows Path
* Extract the File Extension from a Windows Path
* Strip Invalid Characters from Filenames
* Chapter 8 Markup and Data Interchange
* Find XML-Style Tags
* Replace Tags with
* Remove All XML-Style Tags Except and
* Match XML Names
* Convert Plain Text to HTML by Adding and
Tags
* Find a Specific Attribute in XML-Style Tags
* Add a cellspacing Attribute to Tags That Do Not
Already Include It
* Remove XML-Style Comments
* Find Words Within XML-Style Comments
* Change the Delimiter Used in CSV Files
* Extract CSV Fields from a Specific Column
* Match INI Section Headers
* Match INI Section Blocks
* Match INI Name-Value Pairs
* Colophon
Fachgebiete:
Mathematik/Informatik
Informatik
Programmiersprachen/-werkzeuge
NET Programmierung
Mathematik/Informatik
Informatik
Programmiersprachen/-werkzeuge
Java
Mathematik/Informatik
Informatik
Programmiersprachen/-werkzeuge
Perl
Mathematik/Informatik
Informatik
Programmiersprachen/-werkzeuge
Python
Mathematik/Informatik
Informatik
Programmiersprachen/-werkzeuge
Ruby
Mathematik/Informatik
Informatik
Programmiersprachen/-werkzeuge
Visual Basic
Mathematik/Informatik
Informatik
Web/Internet
JavaScript
Mathematik/Informatik
Informatik
Web/Internet
PHP
Weitere Informationen zu "Regular Expressions Cookbook"
Maße:
180 x 235 mm / 842 g
Abbildungen:
1, black & white illustrations
Listenpreis:
£ 34,50 (GBP); $ 44,99 (USD)
Sprache:
englisch
Kategorie:
NET Programmierung
ISBN-10:
0-596-52068-9 / 0596520689
ISBN-13:
978-0-596-52068-7 / 9780596520687
Interessante Artikel:









Kundenbewertungen und Lesermeinungen (Durchschnitt -



)
Keine Kundenmeinungen vorhanden