logo CodeStepByStep logo

regex6

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

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

camelCased strings containing only letters, with at least one letter capitalized
PascalCased strings containing only letters, with at least one letter capitalized
under_score strings containing only letters and (optional) underscores between 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.