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.
\1 \2
(?<name>inner-regex)
I don’t actually know whether POSIX grep would support named groups :o
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.