Regular Expressions 101

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

Open Workspace
  • Python
  • Match
0

Regular Expression

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