Free Preview: Regular Expressions: Up and Running

Your First Matches

07:34

Your First Matches

Let's get started with the simplest example of writing our very first regular expressions. We'll use the popular tool, RegExr to learn some of the basic symbols to find a match. We'll use the period to match any character, the question mark for optional tokens and parenthesis for groups of characters.

Related Links

1.Course Entrance
1 lesson, 00:27

Free Preview
1.1
Course Entrance
00:27

2.Chapter 1
6 lessons, 30:53

Free Preview
2.1
Your First Matches
07:34

2.2
Character Classes and Alternation
08:42

2.3
Carets and Dollars
05:32

2.4
Capturing Values
02:44

2.5
Greedy Matches
02:00

2.6
Ranges and Curly Braces
04:21

3.Chapter 2
4 lessons, 16:53

3.1
Search and Replace
03:44

3.2
Porting the Previous Exercise to PHP
03:46

3.3
preg_match and preg_match_all
05:41

3.4
The preg_split Function
03:42

4.Chapter 3
4 lessons, 16:42

4.1
Negative Lookbehinds
05:29

4.2
Lookaheads
06:13

4.3
Non-capturing Groups
01:57

4.4
Backreferences
03:03

5.Chapter 4
6 lessons, 19:29

5.1
Stripping Out an Anchor Tag's Attributes
02:35

5.2
Matching a US Phone Number, and Named Captures
03:46

5.3
Removing Whitespace
03:01

5.4
Matching an Email Address
03:31

5.5
Verifying a String's Length
01:52

5.6
The Beginnings of a Markdown-like Service
04:44

6.Chapter 5
4 lessons, 18:13

6.1
An Advanced Phone Number Expression
03:15

6.2
Add Comments with the X Flag
04:51

6.3
Conditional Expressions (if-then)
02:55

6.4
Callback Functions for a RegEx
07:12

7.Course Exit
1 lesson, 00:38

7.1
Course Exit
00:38


About Jeffrey Way
I used to be the editor of Nettuts+ and head of web development courses at Tuts+.
+ Expand Bio- Collapse Bio