I don’t actually know whether POSIX grep would support named groups :o
- 2 Posts
- 2 Comments
Joined 1 year ago
Cake day: May 9th, 2024
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
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.