How I Learned to Stop Worrying and Love Regex
Offered By: PHP UK Conference via YouTube
Course Description
Overview
Explore the world of Regular Expressions in this 56-minute PHP UK Conference talk. Learn the basics and delve into the intricate details of this powerful tool for text manipulation and validation. Discover how to leverage regex in daily development tasks, from simple pattern matching to complex text processing. Gain insights into regex concepts, components, character classes, quantifiers, anchors, and advanced techniques like lookaheads and lookbehinds. Understand the importance of readability, engine properties, and practical applications such as code searching and file manipulation. By the end of this talk, develop a newfound appreciation for the versatility and power of regular expressions in PHP development.
Syllabus
Intro
History
Regex Concepts
Regex Components
Pattern Components
Character Classes
Character Class Shortcuts
Dot Metacharacter
Subpatterns and Alternations
Lazy Quantifiers
Possessive Quantifiers
Anchors for Validation
Back-references to Subpatterns
Lookahead & Lookbehind
Word boundary metacharacter
Conditionals
Pattern Delimiters
Modifiers
Readability
Engine Properties
PCRE JIT
Code Search
Stripping Remove a prefix if it's present
Stripping PHP files to bits
Splitting
grep
Does it match?
Limitations
Domain
Boundaries
Document
Taught by
PHP UK Conference
Related Courses
What's New in PHP 8.1PHP UK Conference via YouTube From Betamax to VCR - Harden Your API Integration Testing
PHP UK Conference via YouTube Levelling Up Your Web Scraping Game
PHP UK Conference via YouTube Practical Advanced Static Analysis
PHP UK Conference via YouTube PHP Fibers
PHP UK Conference via YouTube