Practice Regular Expressions (3.8) - Non-Deterministic Finite Automata (NFA) and Regular Expressions
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

Regular Expressions

Practice - Regular Expressions

Learning

Practice Questions

Test your understanding with targeted questions

Question 1 Easy

What does the regular expression 'a*' match?

💡 Hint: Think about how many 'a's can be present including none.

Question 2 Easy

What does the union operation in regular expressions indicate?

💡 Hint: Remember the word 'or'!

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

Question 1

What does '(cat|dog)' match?

Only 'cat'
Only 'dog'
Either 'cat' or 'dog'

💡 Hint: Consider what it means to have an alternate expression.

Question 2

True or False: The expression 'a*' must always match at least one character.

True
False

💡 Hint: Think about the meaning of '*' in regex.

Get performance evaluation

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

Create a regex that matches any string containing at least one digit.

💡 Hint: Consider how to represent a digit.

Challenge 2 Hard

Develop a regex to match a date format 'YYYY-MM-DD'.

💡 Hint: Think about how you would describe each part of the date.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.