Cucumber supports expressions, a custom alternative to regular expressions. This is a supplemental library for CucumberSwift that can parse these expressions.
It is possible to use this as a standalone library for parsing Cucumber expressions with Swift. Check out our docs for more info.
Cucumber Expressions grammar and implementation information came from cucumber-expressions.
This static website allowed me to play with weird edge cases to see expected behavior and correct regex outputs.