Open CIAvash opened 3 years ago
Thanks for submitting this! It'll take me a bit to review and gather my thoughts on it.
Is there anyway get named group?
like (1)(?<aa>2)
I want get aa
only.
@yywing Don't know why you asked that question here, as it's not relevant to the pull request. But you can do match.GroupByName(`aa`)
.
In other words maintain the order of capture groups. With the
MaintainCaptureOrder
regexp option.I also added inline option
o
. It's useful if you only have access to the pattern, but not the regex. But it only is useful if used at the start of the pattern, I couldn't find a way to prevent it from being used elsewhere.I've never liked nor have been good with bitwise operations. So I don't know if I should've picked another number.