skip to content
Mastering regular expressions : powerful technuques for Perl and other tools Preview this item
ClosePreview this item

Mastering regular expressions : powerful technuques for Perl and other tools

Author: Jeffrey E F Friedl; Andy Oram
Publisher: Cambridge : O'Reilly, cop. 1998.
Series: Nutshell handbook.
Edition/Format:   Print book : English : 1st ed., 7th printView all editions and formats

Regular expressions, a tool for manipulating text and data, are found in scripting languages, editors, programming environments, and specialized tools. This text provides a guide to the steps of  Read more...


(not yet rated) 0 with reviews - Be the first.

More like this

Find a copy in the library

&AllPage.SpinnerRetrieving; Finding libraries that hold this item...


Document Type: Book
All Authors / Contributors: Jeffrey E F Friedl; Andy Oram
ISBN: 1565922573 9781565922570
OCLC Number: 440766393
Description: XXIV, 342 str. ; 24 cm.
Contents: Preface. Why I Wrote This Book. Intended Audience. How to Read This Book. This Book, as a Story. This Book, as a Reference. Organization. The Introduction. The Details. Tool-Specific Information. Typographical Conventions. Exercises. Personal Comments and Acknowledgments. Shoulders to Stand On. Other Thanks In the Future. Chapter 1. Introduction to Regular Expressions Solving Real Problems Regular Expressions as a Language The Filename Analogy The Language Analogy The Regular-Expression Frame of Mind Searching Text Files: Egrep Egrep Metacharacters Start and End of the Line Character Classes Matching Any Character -- Dot Alternation Word Boundaries In a Nutshell Optional Items Other Quantifiers: Repetition Ignoring Differences in Capitalization Parentheses and Backreferences The Great Escape Expanding the Foundation Linguistic Diversification The Goal of a Regular Expression A Few More Examples Regular Expression Nomenclature Improving on the Status Quo Summary Personal Glimpses. Chapter 2. Extended Introductory Examples About the Examples A Short Introduction to Perl Matching Text with Regular Expressions Toward a More Real-World Example Side Effects of a Successful Match Intertwined Regular Expressions Intermission Modifying Text with Regular Expressions Automated Editing A Small Mail Utility That Doubled-Word Thing. Chapter 3. Overview of Regular Expression Features and Flavors A Casual Stroll Across the Regex Landscape The World According to Grep The Times They Are a'\|Changin' At a Glance POSIX Care and Handling of Regular Expressions Identifying a Regex Doing Something with the Matched Text Other Examples Care and Handling: Summary Engines and Chrome Finish Chrome and Appearances Engines and Drivers Common Metacharacters Character Shorthands Strings as Regular Expressions Class Shorthands, Dot, and Character Classes Anchoring Grouping and Retrieving Quantifiers Alternation Guide to the Advanced Chapters Tool-Specific Information. Chapter 4. The Mechanics of Expression Processing Start Your Engines! Two Kinds of Engines New Standards Regex Engine Types From the Department of Redundancy Department Match Basics About the Examples Rule 1: The Earliest Match Wins The ``Transmission'' and the Bump-Along Engine Pieces and Parts Rule 2: Some Metacharacters Are Greedy Regex-Directed vs. Text-Directed NFA Engine: Regex-Directed DFA Engine: Text-Directed The Mysteries of Life Revealed Backtracking A Really Crummy Analogy Two Important Points on Backtracking Saved States Backtracking and Greediness More About Greediness Problems of Greediness Multi-Character ``Quotes'' Laziness? Greediness Always Favors a Match. Is Alternation Greedy? Uses for Non-Greedy Alternation Greedy Alternation in Perspective Character Classes vs. Alternation NFA\, DFA\, and POSIX ``The Longest-Leftmost'' POSIX and the Longest-Leftmost Rule Speed and Efficiency DFA and NFA in Comparison Practical Regex Techniques Contributing Factors Be Specific Difficulties and Impossibilities Watching Out for Unwanted Matches Matching Delimited Text Knowing Your Data and Making Assumptions Additional Greedy Examples Summary Match Mechanics Summary Some Practical Effects of Match Mechanics. Chapter 5. Crafting a Regular Expression A Sobering Example A Simple Change -- Placing Your Best Foot Forward More Advanced -- Localizing the Greediness Reality Check A Global View of Backtracking More Work for a POSIX NFA Work Required During a Non-Match Being More Specific Alternation Can Be Expensive A Strong Lead The Impact of Parentheses Internal Optimizations First-Character Discrimination Fixed-String Check Simple Repetition Needless Small Quantifiers Length Cognizance Match Cognizance Need Cognizance String/Line Anchors Compile Caching Testing the Engine Type Basic NFA vs. DFA Testing Traditional NFA vs. POSIX NFA Testing Unrolling the Loop Method 1: Building a Regex From Past Experiences The Real ``Unrolling the Loop'' Pattern Method 2: A Top-Down View Method 3: A Quoted Internet Hostname Observations Unrolling C Comments Regex Headaches A Na\(:ive View Unrolling the C Loop The Freeflowing Regex A Helping Hand to Guide the Match A Well-Guided Regex is a Fast Regex Wrapup Think! The Many Twists and Turns of Optimizations. Chapter 6. Tool-Specific Information Questions You Should Be Asking Something as Simple as Grep... In This Chapter Awk Differences Among Awk Regex Flavors Awk Regex Functions and Operators Tcl Tcl Regex Operands Using Tcl Regular Expressions Tcl Regex Optimizations GNU Emacs Emacs Strings as Regular Expressions Emacs's Regex Flavor Emacs Match Results Benchmarking in Emacs Emacs Regex Optimizations. Chapter 7. Perl Regular Expressions The Perl Way Regular Expressions as a Language Component Perl's Greatest Strength Perl's Greatest Weakness A Chapter, a Chicken, and The Perl Way An Introductory Example: Parsing CSV Text Regular Expressions and The Perl Way Perl Unleashed Regex-Related Perlisms Expression Context Dynamic Scope and Regex Match Effects Special Variables Modified by a Match ``Doublequotish Processing'' and Variable Interpolation Perl's Regex Flavor Quantifiers -- Greedy and Lazy Grouping String Anchors Multi-Match Anchor Word Anchors Convenient Shorthands and Other Notations Character Classes Modification with \Q and Friends: True Lies The Match Operator Match-Operand Delimiters Match Modifiers Specifying the Match Target Operand Other Side Effects of the Match Operator Match Operator Return Value Outside Influences on the Match Operator The Substitution Operator The Replacement Operand The /e Modifier Context and Return Value Using /g with a Regex That Can Match Nothingness The Split Operator Basic Split Advanced Split Advanced Split's Match Operand Scalar-Context Split Split's Match Operand with Capturing Parentheses Perl Efficiency Issues ``There's More Than One Way to Do It'' Regex Compilation, the /o Modifier, and Efficiency Unsociable $ and Friends The Efficiency Penalty of the /i Modifier Substitution Efficiency Concerns Benchmarking Regex Debugging Information The Study Function Putting It All Together Stripping Leading and Trailing Whitespace Adding Commas to a Number Removing C Comments Matching an Email Address Final Comments Notes for Perl4 Appendix A. Online Information General Information Mastering Regular Expressions O'Reilly Associates OAK Archive's Virtual Software Library The GNU Archive Yahoo! Other Web Links Awk C Library Packages Egrep Emacs Flex Perl Python Tcl Appendix B. Email Regex Program
Series Title: Nutshell handbook.
Other Titles: Regular expresions
Responsibility: Jeffrey E.F. Friedl ; [editor Andy Oram].


User-contributed reviews
Retrieving GoodReads reviews...
Retrieving DOGObooks reviews...


Be the first.
Confirm this request

You may have already requested this item. Please select Ok if you would like to proceed with this request anyway.

Linked Data

Primary Entity

<> # Mastering regular expressions : powerful technuques for Perl and other tools
    a schema:CreativeWork, schema:Book ;
    library:oclcnum "440766393" ;
    library:placeOfPublication <> ;
    library:placeOfPublication <> ; # Cambridge
    schema:about <> ; # računalništvo
    schema:alternateName "Regular expresions" ;
    schema:author <> ; # Jeffrey E. F. Friedl
    schema:bookEdition "1st ed., 7th print." ;
    schema:bookFormat bgn:PrintBook ;
    schema:copyrightYear "op." ;
    schema:datePublished "1998" ;
    schema:editor <> ; # Andy Oram
    schema:exampleOfWork <> ;
    schema:inLanguage "en" ;
    schema:isPartOf <> ; # Nutshell handbook.
    schema:isPartOf <> ; # A nutshell handbook
    schema:name "Mastering regular expressions : powerful technuques for Perl and other tools" ;
    schema:productID "440766393" ;
    schema:publication <> ;
    schema:publisher <> ; # O'Reilly
    schema:workExample <> ;
    wdrs:describedby <> ;

Related Entities

<> # A nutshell handbook
    a bgn:PublicationSeries ;
    schema:hasPart <> ; # Mastering regular expressions : powerful technuques for Perl and other tools
    schema:name "A nutshell handbook" ;

<> # Nutshell handbook.
    a bgn:PublicationSeries ;
    schema:hasPart <> ; # Mastering regular expressions : powerful technuques for Perl and other tools
    schema:name "Nutshell handbook." ;

<> # računalništvo
    a schema:Thing ;
    schema:name "računalništvo" ;

<> # Jeffrey E. F. Friedl
    a schema:Person ;
    schema:familyName "Friedl" ;
    schema:givenName "Jeffrey E. F." ;
    schema:name "Jeffrey E. F. Friedl" ;

<> # Andy Oram
    a schema:Person ;
    schema:familyName "Oram" ;
    schema:givenName "Andy" ;
    schema:name "Andy Oram" ;

    a schema:ProductModel ;
    schema:isbn "1565922573" ;
    schema:isbn "9781565922570" ;

    a genont:InformationResource, genont:ContentTypeGenericResource ;
    schema:about <> ; # Mastering regular expressions : powerful technuques for Perl and other tools
    schema:dateModified "2018-05-17" ;
    void:inDataset <> ;

Content-negotiable representations

Close Window

Please sign in to WorldCat 

Don't have an account? You can easily create a free account.