Regular Expressions 101

Community Patterns

Find all words with Character and specific string and end in y

0

Regular Expression
Python

Description

Supply an appropriate regular expression which will find all words which have the character ‘a’ in them, then 0 or more characters later have the string “epe”, then 0 or more characters later have the character “y”. The “y” character must occur AT THE END of the word in question, but the first ‘a’ does not have to appear at the start of the word.

Submitted by anonymous - 4 years ago