3 ms·
I wrote a thing like this once, only it would find any matching multiline regex, send it to any external command you wanted, and substitute the result. That way
by throwawaaarrgh 3y ago
I wrote a thing like this once, only it would find any matching multiline regex, send it to any external command you wanted, and substitute the result. That way you could replace any text with any kind of processing program depending on your needs. Too bad I wrote it at work, was probably ditched when I left.
- atoav 3y agoWas it only a twmporary fix? Then no, nothing is more permanent than a twmporary fix.
- simonw 3y agoI built a feature like that which works using the Python AST recently: https://github.com/simonw/symbex/blob/main/README.md#replacing-a-matched-symbol-by-running-a-command https://github.com/simonw/symbex/blob/main/README.md#replaci...