What is the regular expression pattern to match a valid email address?
Quiz 3.5

Quiz
•
Computers
•
Professional Development
•
Hard
Mohand Mahmoud
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$
^[a-z\s]+$
^[a-z\s]+$
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the regular expression pattern to match a valid phone number in the US?
^[a-z\s]+$
^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
all of them
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the regular expression pattern to match a string that contains at least one digit?
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$
^[a-z\s]+$
\d+
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the regular expression pattern to match a string that contains only lowercase letters and spaces?
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$
^[a-z\s]+$
\d+
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the regular expression pattern to match a string that starts with "Hello" and ends with "world"?
world$
^Hello.*
^Hello.*world$
^Hello_world$
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the regular expression pattern to match a valid URL that starts with "https://"?
^https://[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
^https://[a-zA-Z]*\d{3}$
^https://(?=.*[a-zA-Z])(?=.*\d).+$
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
txt = "The rain in Spain"
x = re.search(r"\bS\w+", txt)
print(x.....())
output is (12,17)
what is method in space ???
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
FP2: 02 - STRINGS

Quiz
•
Professional Development
20 questions
Atalhos

Quiz
•
Professional Development
20 questions
CodeHS - Intro to Python - Basics and Console Interaction

Quiz
•
9th Grade - Professio...
10 questions
COMPUTER SHORTCUT KEYS

Quiz
•
6th Grade - Professio...
10 questions
UNIX

Quiz
•
1st Grade - Professio...
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
10 questions
MS Word Pretest - DTC

Quiz
•
Professional Development
20 questions
Python Programming Fundamental

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade