Page 1 of 1

Wonderful grep tool for windows

Posted: 21 Mar 2012, 00:39
by Forboding Angel
Just found it today, supports regex multiline search and replace as well. It's very very good.

http://code.google.com/p/dngrep/

Re: Wonderful grep tool for windows

Posted: 21 Mar 2012, 01:13
by zwzsg
Why would Notepad++ regex not be enough for me?

Re: Wonderful grep tool for windows

Posted: 21 Mar 2012, 04:00
by Forboding Angel
Because sometimes you need to sort through an entire webserver looking for a single string encompassing 100,000 files and do a multiline search and replace on those files.

Additionally, Notepad++ does not support multiline search and replace natively (although it can be added via http://www.phdesign.com.au/).

Re: Wonderful grep tool for windows

Posted: 21 Mar 2012, 07:26
by knorke
Notepad++ does not support multiline search and replace natively
use \r\n
eg "AAAA\r\nBBB" will find
AAAA
BBB

Re: Wonderful grep tool for windows

Posted: 21 Mar 2012, 09:57
by Forboding Angel
Yes... knorke, I am well aware of that. In this case, a grep tool was far better suited.

Re: Wonderful grep tool for windows

Posted: 21 Mar 2012, 12:16
by Beherith
dammit, just after I write myself a fast script to parse a mod for keywords :)

Re: Wonderful grep tool for windows

Posted: 21 Mar 2012, 12:42
by Forboding Angel
Also worth mentioning, notepad++ has a limit to the amount you can put in the search box. So if you have a huge string (like I did) that you needed to search for, it would not fit.

The string I needed to search for contained 7276 characters. Far beyond the limits of Notepad++

Re: Wonderful grep tool for windows

Posted: 21 Mar 2012, 12:49
by knorke
lol your blog haz virus :shock:

Re: Wonderful grep tool for windows

Posted: 22 Mar 2012, 03:55
by Forboding Angel
Nah, a customer's website (which i don't manage, I do all their in-office network stuff), fell prey to a php injection hijack. Pretty simple to remove, if you like grep that is. Tried to do it with NP++ first, and np++ laughed.

Their web guy was like "BWahh?" meaning that I'll probably be taking over that portion as well.