super-expressive
super-expressive copied to clipboard
Question: how to archieve a capturing group with one alternative being `assert position at start/end`?
I haven't found a way to archive the following regex: /(\s|^)etc/
. Skill issue? Thanks in advance
A similar result but for a non-capturing group it's doable with:
SuperExpressive()
.anyOf
.whitespaceChar
.startOfInput
.end()
.toRegex()
// /(?:^|[\s])/
```