Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?<=[qwrtypsdfghjklzxcvbnm])([aeiou]{2,})([qwrtypsdfghjklzxcvbnm])
"
g

Description

  1. positive look behind: it does not consume the first character, so it can be used for the next match
  2. flags=re.I is to ignore case sensitive
Submitted by anonymous - 7 years ago