The sample I'm looking for is:
TXT.*\.txt
This pattern can occur several times on any given line. I would like to either extract each instance of the template, or, conversely, remove the text that surrounds each instance using sed (or something, really).
Thank!
source
share