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

Quiz
•
Computers
•
University
•
Hard
Mohand Mahmoud
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$
^[a-z\s]+$
all of the them
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
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 • 2 pts
What is the regular expression pattern to match a string that contains at least one digit?
^[a-z\s]+$
^\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}$
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
\d+
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
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,}$
^[a-z\s]+$
\d+
all is wrong
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the regular expression pattern to match a string that starts with "Hello" and ends with "world"?
world$
^Hello.*world$
^Hello.*
^Hello_world$
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
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:///(?<=/)[^/]*(?=/)/$
^https://(?=.*[a-zA-Z])(?=.*\d).+$
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
txt = "The rain in Spain"
x = re.search(r"\bS\w+", txt)
print(x.....())
output is (12,17)
what is method in space ???
span
string
group
match
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
C++ Faili (1)

Quiz
•
University
10 questions
RegEx in Python

Quiz
•
University
10 questions
Pre Processing

Quiz
•
University
12 questions
javaquizvivek

Quiz
•
University
10 questions
KUIS PRAK. 9: MANAGEMENT FILE 😼

Quiz
•
University
15 questions
Java

Quiz
•
University
11 questions
Linux Commands

Quiz
•
University
10 questions
Tes Awal AlPro Modul 6

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade