
Python RegEx

Quiz
•
Other
•
12th Grade
•
Easy
Amy Austin
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a RegEx used for in programming?
To format strings in a specific way
To encrypt and decrypt data
To generate random strings
To check if a string contains the specified search pattern
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which module in Python is used to work with Regular Expressions?
os
re
math
json
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the findall() function in Python's re module do?
Returns a list containing all matches
Replaces one or many matches with a string
Searches for the first white-space character in the string
Splits the string at each match
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What character signifies the start of a string in RegEx?
*
$
^
.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which special sequence is used to find a digit in a string with RegEx?
\d
\s
\D
\w
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the RegEx metacharacter '.' match?
A non-digit character
A whitespace character
A digit
Any character except the newline character
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to search for a match in a string, returning a Match object if there is a match?
split()
findall()
search()
sub()
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Electricidad y Óptica 3

Quiz
•
12th Grade
15 questions
EXPRESIONES LATINAS A

Quiz
•
12th Grade
12 questions
Logic

Quiz
•
KG - Professional Dev...
12 questions
Logarithms

Quiz
•
9th - 12th Grade
15 questions
Strings and Brass Instruments of the Orchestra

Quiz
•
KG - 12th Grade
10 questions
Instruments of the Orchestra - Strings

Quiz
•
6th - 12th Grade
12 questions
Unit 2 Terms 2.4-2.7

Quiz
•
12th Grade
9 questions
Kamen Rider

Quiz
•
1st Grade - University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Other
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
7 questions
EAHS PBIS Lesson- Bathroom

Lesson
•
9th - 12th Grade
57 questions
How well do YOU know Neuwirth?

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
4 questions
Study Skills

Lesson
•
5th - 12th Grade
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University