Regular Expressions 101

Community Patterns

use positive look behind and flags=re.I

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 - 6 years ago