Web Developer and Computing Resource

      Advanced

grepWin search and replace

grepWin search and replace
grepWin search and replace

Web Resource - grepWin search and replace - Stefans Tools

grepWin is a simple search and replace tool which can use regular expressions to do its job. This allows to do much more powerful searches and replaces. replacing strings is not more complicated than searching. Whatever the search finds is replaced with the replace string. Searching for cat and replacing it with dog is the most basic example and works just like you'd expect.

. (dot) a dot matches any character. Searching for t.t will match tat as well as tut.

* (asterix) matches the previous expression zero or more times. Searching for spel*ing will find all words like speling or spelling and also speing since the l can be matched zero times, which means it doesn't have to be there.

| (pipe) char is used as an OR operator. Searching for cat|dog will match either cat or dog. Note that the OR operator uses everything left and right of the operator. If you want to limit the reach of the operator, you have to use brackets to group them. Searching for (cat|dog)food finds catfood and dogfood.

freeware