J
Jasen J.
I'm interested in manipulating & munging regular expressions, not the
matches, but the regexes themselves.
Specifically, I want to parse out the groups/captures in a regex much
like .named_captures and .names, but for ALL captures, not just the
named ones.
My end goal is to take a regex like /(one)(two)(three)four/ and split it
up into three separate regexs
/(one)twothreefour/
/one(two)threefour/
/onetwo(three)four/
Any pointers would be appreciated.
- Jasen.
matches, but the regexes themselves.
Specifically, I want to parse out the groups/captures in a regex much
like .named_captures and .names, but for ALL captures, not just the
named ones.
My end goal is to take a regex like /(one)(two)(three)four/ and split it
up into three separate regexs
/(one)twothreefour/
/one(two)threefour/
/onetwo(three)four/
Any pointers would be appreciated.
- Jasen.