grepWin Try It
Regular expression search and replace for Windows
Version
Latest known: 2.1.12 (2025-09-24)
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
- Search for a regex (GUI tool)
Build and execute a grepWin command line that searches the samples folder for the same Pride and Prejudice surnames as the ripgrep demo. grepWin is primarily a Windows GUI tool - /execute /closedialog runs the search and closes the result window, but stdout is typically empty (matches are rendered in the GUI). Use ripgrep instead when you need scriptable output. Demo will only work on hosts with an interactive desktop session.
Agree to terms to run demos.