grepWin

grepWin

Regular expression search and replace for Windows

Category
File Search
License
GPL 3
Platforms
Windows
Released
2017
Path
c:\grepWin\
Benefits
You can also integrate grepWin into Visual Studio, the wiki explains how.
Version
Latest known: 2.1.12 (2025-09-24)

Examples

1. Search for a regex pattern in .txt files in a specific directory

grepWin.exe /searchpath:"C:\Documents" /searchfor:"error\d+" /filemask:"*.txt" /regex:yes /u:yes /i:yes /execute

2. Replace text in .cpp and .h files using an ini file configuration :: Assuming an ini file named 'search_settings.ini' exists with a [CodeSearch] section

grepWin.exe /searchini:"C:\Config\search_settings.ini" /name:"CodeSearch" /replacewith:"new_text" /executereplace /k:yes /closedialog

3. Search for whole words in files newer than a specific date

grepWin.exe /searchpath:"D:\Projects" /searchfor:"TODO" /wholewords:yes /datelimit:1 /date1:"2025:01:01" /u:yes /execute

Try it

Agree to terms to run demos.