Author
Released
11/14/2019- Creating flexible patterns using character sets
- Achieving efficiency when using repetition
- Writing logical and efficient alternations
- Defining character sets
- Greedy and lazy expressions
- Writing regexes using start and end anchors
Skill Level Advanced
Duration
Views
- [Kevin] Regular expressions are an essential skill for any developer or computer programmer to have. They allow you to define text patterns that can be used for a variety of tasks. You can validate data submitted by users, your code can extract parts from longer strings, you can use them to convert data into a new format. They even make it easier to search your own code. In this course, we will learn the fundamentals of writing regular expressions. We will walk through each of the symbols that are the basic building blocks for more complex patterns. Through a series of simple demonstrations, you will learn how to put together an expression and how to anticipate the behavior of the program that will interpret it. Along the way, I will point out a number of pitfalls and common mistakes to avoid. My name is Kevin Skoglund. I've been a web developer for over 15 years, and I use regular expressions all the time, both in my code and to speed up my development. I consider regular expressions an indispensable tool. I'm excited to share what I've learned so that you can use them, too.
Related Courses
-
Java Essential Training for Students
with Peggy Fisher3h 6m Intermediate -
Java 11+ Essential Training
with David Gassner3h 43m Intermediate
-
Introduction
-
1. Get Started with Regular Expressions
-
2. Characters
-
Literal characters7m 23s
-
Metacharacters1m 59s
-
The wildcard metacharacter4m 39s
-
Escaping metacharacters5m 27s
-
Other special characters2m 34s
-
Challenge: Characters2m 1s
-
Solution: Characters3m 49s
-
-
3. Character Sets
-
Define a character set3m 57s
-
Character ranges4m 44s
-
Negative character sets4m 13s
-
Shorthand character sets6m 14s
-
Challenge: Character sets1m 17s
-
Solution: Character sets4m 31s
-
-
4. Repetition
-
Repetition metacharacters6m 49s
-
Quantified repetition5m 18s
-
Greedy expressions6m 15s
-
Lazy expressions4m 50s
-
Challenge: Repetition1m 23s
-
Solution: Repetition5m 57s
-
-
5. Grouping and Alternation
-
Grouping metacharacters4m 36s
-
Alternation metacharacters3m 55s
-
-
6. Anchors
-
Start and end anchors6m 8s
-
Word boundaries6m 30s
-
Challenge: Anchors1m 1s
-
Solution: Anchors4m 15s
-
-
Conclusion
-
Next steps56s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Write text matching patterns