·26 words·1 min
Outputting only the match / capturing group with grep ↗
Grep doesn’t handle capturing groups, but with lookaround you can match and exclude prefixes. This leaves you with the part of the pattern that you needed.
Outputting only the match / capturing group with grep ↗
Grep doesn’t handle capturing groups, but with lookaround you can match and exclude prefixes. This leaves you with the part of the pattern that you needed.