There are many times when you have a file from which you want to extract specific strings based on a regex and using a capture group is a very efficient way to parse multiple strings from the same line.
I have found that sed is the easiest way to do so on the Linux command line.
Given the following input file:
This is a line of text with a year=2020 month=12 in it
This line of text does not have → Continue reading “Using sed with regex capture groups”