Regular Expressions 101

Community Patterns

Cucumber feature regex

1

Regular Expression
PCRE (PHP <7.3)

/
(?<step>Given|When|Then|And)\s+(?<stepName>[^\r\n"]+)\s*(?<stepParameter>"[^"]*")?\s*[\n\r]
/
g

Description

no description available

Submitted by anonymous - 8 years ago