Cargando…

Regex quick syntax reference : understanding and using regular expressions /

This quick guide to regular expressions is a condensed code and syntax reference for an important programming technique. It demonstrates regex syntax in a well-organized format that can be used as a handy reference, showing you how to execute regexes in many languages, including JavaScript, Python,...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Nagy, Zsolt (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: [United States] : Apress, 2018.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Intro; Table of Contents; About the Author; About the Technical Reviewer; Chapter 1: An Introduction to Regular Expressions; Why Are Regular Expressions Important?; What Are Regular Expressions?; Frustrations with Regular Expressions Arise from Lack of Taking Action; Regular Expressions Are Imperative; The Language Family of Regular Expressions; Summary; Chapter 2: Regex Syntax 101; Formulating an Expression; Literal Characters and Meta Characters; Arbitrary Character Class; Basic Concatenation; Alternative Execution; Operator Precedence and Parentheses; Anchored Start and End; Modifiers.
  • A Successful Match Is Cheaper Than FailureAutomatically Generating Regex FSMs; Summary; Chapter 5: Repeat Modifiers; Backtracking; Match at Least Once; Match at Most Once: Optionals; Match Any Number of Times; Fixed-Range Matching; Loop Exactly n Times; Greedy Repeat Modifiers; Lazy Repeat Modifiers; Possessive Repeat Modifiers; Summary; Chapter 6: Character Sets and Character Classes; Character Sets; Character Set Ranges; Exclusions from Character Sets; Character Set Classes; Concatenating Advanced Language Constructs; Summary; Chapter 7: Substring Extraction from Regular Expressions.
  • Defining Capture GroupsPerl 6 Capture Groups; Retrieval of Captured Substrings; JavaScript; PHP; Python; Perl 5; Reusing Captured Substrings Within a Regex; Capture Groups and Performance; Extensions to Capture Groups; Summary; Chapter 8: Lookahead and Lookbehind; Lookahead; Lookbehind; Summary; Chapter 9: Maintaining Regular Expressions; Extended Mode; Regex Subroutines; PCRE Subroutines; Perl 6 Subroutines; Recursion and Circular References with Subroutines; Extended Mode, Subroutines, and Abstractions; Named Capture Groups; EMACS Named Capture Groups; PCRE Named Capture Groups.
  • Perl 6 Named Capture GroupsCase Study: XRegExp Library for JavaScript; Summary; Chapter 10: Optimizing Regular Expressions; Summary of the Optimization Techniques; Making Character Classes More Specific; Repeating Character Class Loops; Use Possessive Repeat Modifiers Whenever Possible; Use Atomic Groups; Refactor for Optimization; Optimization Techniques Limit Nondeterministic Execution; Summary; Chapter 11: Parsing HTML Code and URL Query Strings with Regular Expressions; Parsing HTML Tags; Processing the Query String of a URL; Afterword: This Is Not the End, but the Beginning.
  • Chapter 3: Executing Regular Expressions; Regular Expressions in JavaScript; RegExp Methods; String Methods Accepting Regular Expressions; Regex Modifiers; Global Matches; Multiline Matches; ES6 Unicode Regular Expressions; Sticky Matches; Summary; Other PCRE-Based Regex Environments; PHP; Python; Perl 5; Java; R; C#; Ruby; Golang; C++; Summary; Chapter 4: Visualizing Regex Execution Using Finite State Machines; Regular Expressions Are Finite State Machines; Backtracking; Deterministic and Nondeterministic Regex Modeling; Basic Regex Simplifications.