Course “Regular Expressions (Regexp)”

Course updated on November 22, 2024

Subscribe

Access this and all courses with a subscription

What's included

Theory: 11 lessons
Exercises: 10
Questions: 24
Self-study tasks
Extra materials
Extended materials for 11 lessons

Description

Regular expressions (Regexp) are a powerful way to process strings, allowing you to find substrings (part of a string) in strings according to complex conditions. They are present in all high-level languages without exception and are often encountered in everyday work. However, you can only use the full power of regular expressions if you understand their language.

You will learn

  • Handle strings efficiently in your language
  • Define complex expressions using character classes, ranges and conditions
  • Control the behavior of regular expressions with flags

Syllabus

1

Character representation. Metacharacter.

Learn basic regular expressions

2

Character classes

Learn how to compose and use character groups

3

Position within a string

Learn to set boundaries

4

Alternative

Learn to use an enum

5

Quantification

Learn how to set repetitions

6

Greediness

Stop being greedy

7

Grouping. Backreferences

Learn how to reuse groups in regular expressions

8

Modifiers

Learn to control via flags inside a regular expression

9

Look forward/backward

Learn how to exclude viewed matches from groups

10

Search by condition

Learn to set conditions

11

Flags

Learn the main global flags

Recommended programs

Course Cover
  • Run code right in the browser
  • Lifetime access
  • Learn at your own pace
Subscribe

Access this and all courses with a subscription