What are the best Windows tools for multi-line find and replace in all files within a folder?

February 8, 2026 2 answers
Asked by beechwood
I'm working on updates for an old website and need to remove a multi-line JavaScript function that appears across numerous pages. Additionally, I have to declare a doctype before the HTML tag and make some other minor adjustments across about 150 pages. While I have Windows grep, it's limited as it only handles single lines. I prefer an easy-to-use tool where I can paste text into an interface for find and replace without tackling regex. Any suggestions?

Answers

+!parcel received
You can easily do multi-line find and replace using VS Code or other text editors. It's super user-friendly!

+88 tickets printed: VS Code did exactly what I wanted. Thanks!

cantilever.beam: I will take a look at VS Code. "Any other text editor" isn't super accurate. Vim will do it... if I dig into regex.

Reply to this answer
HORIZONTAL LINE
Just open your folder in VS Code and use the built-in find-and-replace feature. It should handle what you need!

beechwood: Thanks, I'll check VS Code.

+!parcel received: VS Code did exactly what I wanted. Thanks!

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions