Carrot on a Stick
Given a list of numbers, print only the even numbers.
Regexp Moderate 7/9/30
Hello Regexp
Write a regular expression that will match texts like “Hello {X}” and only output “{X}” (w/o quotes)...
Regexp Moderate 11/13/16
In Brackets
Given a line of text, you have to extract the bit of text enclosed within a pair of brackets. There ...
Odd Screams
You will be given a string with one or more a’s. You have to write a regular expression that matches...
Regexp Moderate 7/7/13
Pairexp
Given two numbers, print the number only if both numbers are the same.
Regexp Moderate 5/5/15
Regular Brackets
This problem is matching brackets, but with regular expression. Given a set of parenthesis, if they ...
Regexp Moderate 1/4/8
That One
In the input you will have an integer n (where n is 1, 2, or 3) followed by 3 words. You will have t...
Regexp Moderate 3/5/5
Three Letter Words
Given a line of text find all the three-letter words.
Regexp Moderate 8/10/18
Two Words
Given a line of text (space-separated words), find the first word that appears at least twice in the...
Vowels Bad, Consonants Good
You will be given a line of text. The text will contain space separated words. Identify all the word...
Regexp Moderate 5/5/9
Within the Span
You will be given a snippet of HTML. The HTML will have at most one <span> element. You will have to...
Regexp Moderate 8/9/10
Toph uses cookies. By continuing you agree to our Cookie Policy.