Given this text string of ; delimited columns:
a;b;c
a;x;23
b;b;12
I am looking to get column 3 of every line that has an a in column 1 with ^(a);(.*?);(.*?)$ as shown here.
However, as you can see the full non matching line, is also present in the result, after the substitution.
Any idea on how to get only the 3rd column of the matching lines, without the non matching one.
Thanks