EE 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

Commentary

There are no comments on this entry.

Comment as a guest Required Fields ✱

What do you want to be called?
How do we contact you?
Where are you commenting from?
Do you have a website to share?
Please keep it kind, brief and courteous.
Extra stuff we can do!