Hacker News new | past | comments | ask | show | jobs | submit login

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.



I built a feature like that which works using the Python AST recently:

https://github.com/simonw/symbex/blob/main/README.md#replaci...


Was it only a twmporary fix? Then no, nothing is more permanent than a twmporary fix.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: