logo CodeStepByStep logo

regex4

Language/Type: General regular expressions
Author: Melissa Hovik (on 2018/06/01)

Write a regular expression that will match each of the following patterns:

A version of Google with an odd number of o's (maintaining letter-casing)
A version of Google with a positive even number of o's (maintaining letter-casing)
Strings that contain at least two consecutive vowels (A, E, I, O, or U), ignoring letter-casing
Non-empty strings that contain only consonants (letters that are not vowels)
Digimon names: strings starting with a capital letter and ending in "mon" (only letters otherwise)
A capitalized first name, single (upper-case) middle initial, and capitalized last name with a single space between each and with the first and last name both having fewer than 10 letters

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.