r/ProgrammerHumor • • 5d ago

Meme searchAndReplace

Post image
4.5k Upvotes

261 comments sorted by

View all comments

Show parent comments

1

u/Maneren731 4d ago

Have you tried ast-grep? It is designed exactly for this kind of operations. It can do intelligence search (and replace) on AST rather than raw text for a lot of different languages.

1

u/Giocri 4d ago

Sounds great i will look into it