logo CodeStepByStep logo

regex9

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

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

Lower-cased single words that start with "s" and end with "ion" or "ing".
Lower-cased single words that contain at least two occurrences of "oo" ("ooo" is also considered to match)
Strings of one or more space-separated words such that each word optionally ends with a single ",", ";" or ":" but the last word always ends with ".". Ignore letter-casing and only consider alphabetical characters for words.

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.