VegOwOtenks

joined 4 months ago
 
[โ€“] [email protected] 25 points 2 months ago (1 children)

You can use backreferences \1 \2 etc. but you can also give them names explicitly.
it looks like this: (?<name>inner-regex)
Some flavors support it, kotlins doesn't apparently.

[โ€“] [email protected] 10 points 2 months ago* (last edited 2 months ago) (3 children)

I don't actually know whether POSIX grep would support named groups :o