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?

If you do not understand how to solve an exercise or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect tests, etc.), please

Is there a problem? Contact a site administrator.

©, all rights reserved.