Since you have not been offered a solution with a parser, can I assume that you should control yourself with regular expressions?
The second point of the Dane has the same nature, since the name grep comes from "global - regular expression - print". But this is complicated by the fact that pre-processing requires the use of predefined functionality.
On the contrary, regular expressions are a powerful tool that can be used directly in the text.
Could you give more information on what you want to do?
source share