Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

PHP Regex - Regular Expressions Tutorial

via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive into a comprehensive 7-hour tutorial on PHP regular expressions, covering everything from basic concepts to advanced techniques. Master literal character matching, metacharacter escaping, character classes, anchors, word boundaries, alternation, quantifiers, and more. Explore practical applications like IPv4 address validation while learning about greedy and lazy behaviors. Gain a deep understanding of powerful regex features such as \d, \w, \s shorthands, multiline mode, and pattern modifiers. By the end of this in-depth tutorial, you'll be equipped to efficiently manipulate and validate strings using PHP's regular expression capabilities.

Syllabus

Regular Expressions Tutorial - What is Regular Expression?.
PHP Regular Expressions Tutorial - Literal characters match.
PHP Regular Expressions Tutorial - Metacharacters Escaping.
PHP Regular Expressions Tutorial - Leftmost match always wins.
PHP Regular Expressions Tutorial - Character classes or Character sets basics.
PHP Regular Expressions Tutorial - Define Range inside Character class.
PHP Regular Expressions Tutorial - Positioning and meaning of dash(-) inside character class.
PHP Regular Expressions Tutorial - Negated character class.
PHP Regular Expressions Tutorial - Postioning and meaning of caret (^) inside character class.
PHP Regular Expressions Tutorial - \d and \D character class shorthand.
PHP Regular Expressions Tutorial - \w and \W character class shorthand.
PHP Regular Expressions Tutorial - How to match new line.
PHP Regular Expressions Tutorial - \s and \S character class shorthand.
PHP Regular Expressions Tutorial - Dot - match any character.
PHP Regular Expressions Tutorial - Dot is not a metacharacter inside character class.
PHP Regular Expressions Tutorial - ^ anchor - match start of string.
PHP Regular Expression Tutorial - Start of line match and multiline mode.
PHP Regular Expressions Tutorial - \A permanent start of string match.
PHP Regular Expressions Tutorial - Anchor $ normal behavior.
PHP Regular Expressions Tutorial - Anchor $ exceptional behavior.
PHP Regular Expressions Tutorial - Anchor $ multiline mode.
PHP Regular Expressions Tutorial - \Z end of string normal behavior.
PHP Regular Expressions Tutorial - \Z end of string exceptional behavior.
PHP Regular Expressions Tutorial - \z comparison with \Z and $.
PHP Regular Expressions Tutorial - s pattern modifier - dot matches all characters.
PHP Regular Expressions Tutorial - Word boundaries \b.
Regular Expressions Tutorial - Word boundary count puzzle.
PHP Regular Expressions Tutorial - \B Non word boundary.
PHP Regular Expressions Tutorial - Alternation introduction.
PHP Regular Expressions Tutorial - Alternation - limit the scope with parentheses.
PHP Regular Expressions Tutorial - Alternation along with start of string.
PHP Regular Expressions Tutorial - Empty Alternative.
PHP Regular Expressions Tutorial - Optional items.
PHP Regular Expressions Tutorial - How to group optional items.
PHP Regular Expressions Tutorial - Greedy behavior of optional item ?.
PHP Regular Expressions Tutorials - How to make optional item lazy.
PHP Regular Expressions Tutorial - * quantifier and default greedy nature.
PHP Regular Expressions Tutorial - misuses of greediness.
PHP Regular Expressions Tutorial - lazy quantifier *?.
PHP Regular Expressions Tutorial + quantifier.
PHP Regular Expressions Tutorial - Greedy behavior of + quantifier.
PHP Regular Expressions Tutorial - How to make + lazy.
PHP Regular Expressions Tutorial - {a,b} counting quantifier.
PHP Regular Expressions Tutorial - {a,b}? Lazy counting quantifier.
PHP/Javascript Regular Expressions - IPv4 address validation part1.

Taught by

WebTunings

Reviews

Start your review of PHP Regex - Regular Expressions Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.