Regular Expressions 101

Community Patterns

Any 'abc' string with at least one a and one b

0

Regular Expression
Python

r"
c*(?:(?:a[ac]*b)|(?:b[bc]*a))[abc]*
"
gi

Description

Any 'abc' string with at least one a and one b

Submitted by anonymous - 7 years ago