Regular expression in php
Quiz by Viji Gripsy PSGRKCW
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
10 questions
Show answers
- Q1Which function in PHP is used to perform a regular expression match?preg_match()str_replace()explode()substr()30s
- Q2Which regular expression modifier in PHP performs a case-insensitive match?sixm30s
- Q3Which function in PHP is used to perform a regular expression replace?str_repeat()array_push()array_merge()preg_replace()30s
- Q4Which function in PHP is used to match multiple occurrences of a pattern in a string using regular expressions?str_shuffle()substr_replace()str_split()preg_match_all()30s
- Q5Which function in PHP is used to extract matches from a string using regular expressions?substr()explode()preg_match_all()str_replace()30s
- Q6Which regular expression modifier in PHP matches any character except a newline character?ismx30s
- Q7Which regular expression metacharacter in PHP matches any non-digit character?\s\w\D\d30s
- Q8Which regular expression metacharacter in PHP matches any whitespace character?\s\S\w\d30s
- Q9Which function in PHP is used to replace all occurrences of a pattern in a string using regular expressions?str_replace()str_shuffle()substr_replace()preg_replace()30s
- Q10Which function in PHP is used to check if a string matches a regular expression pattern?substr()explode()preg_match()str_replace()30s