Skip to content
Black November: every course and Teams plan at the lowest price of the year with code BLACKFRIDAY, through November 30. Shop the deal

Regex for Testers

€19.00 41 Lessons Exercises
Regex for Testers online course

About this course

A regular expression, or regex, is a small pattern language for matching text. As a tester you use it to validate input, pull values out of logs and API responses, and write assertions that check the shape of a string rather than one exact value. This course teaches regex from a testing angle, with live exercises that give feedback as you type.

Common regex patterns

Pattern Matches
d any single digit, 0 to 9
w+ one or more word characters
[A-Z] a single uppercase letter
^...$ the whole string, start to end
`a b`
d{3,5} three to five digits in a row

A quick example

# An order id that is ORD- followed by exactly six digits
^ORD-d{6}$

Inside the course you practise capture groups, lookarounds, and greedy versus lazy matching against real test data, each step with instant feedback.

Course Content

0 Getting Started
1 lesson 3 min
41 lessons Total 1h 39 min total duration

About your instructor

Roy de Kleijn, Testsmith instructor

Roy de Kleijn · Software testing trainer

Roy de Kleijn has more than 15 years of hands-on experience in software testing and test automation. He writes and maintains every Testsmith course, so what you practise matches how the work is really done.

Connect on LinkedIn

Questions?

Contact us if you have any questions about this course.

Contact us

Frequently asked questions

Use \d, which matches any single digit from 0 to 9. For several digits in a row use \d+, or set an exact count with \d{4} for four digits. To match a number with an optional sign and decimals you combine these, for example -?\d+(\.\d+)?.

A greedy quantifier like .* matches as much as it can, then gives characters back if it has to. A lazy one like .*? matches as little as possible. When you extract a value sitting between two markers, lazy matching usually gives the result you expect.

The core syntax is shared, so \d, +, and anchors work almost everywhere. The differences are in flags, lookbehind support, and how you write the pattern in code. This course sticks to the common syntax you can reuse across most testing tools.

Yes. You get videos, quizzes, and hands-on labs, and you work through them at your own pace, with no fixed schedule.

No. The hands-on labs for this course run in your browser, so you can start practising straight away without any local setup.

Yes. You earn a certificate of completion when you finish the course.

Software testers and QA engineers who want practical, job-ready skills, from the fundamentals through to a real project.