Click to See Complete Forum and Search --> : Regular Expressions TExt Editor
JoderCoder
March 14th, 2008, 06:54 AM
Wondering if anyone has a suggestion on what regular expression text editor to use? I have been using only notepad so far, bu need some more sophisticated app to analyze logs etc.. Basically i need to be able to say "delete all lines containing this pattern" or everything but..
I heard of vim but i think it is for unix mostly (heard that ported to windows as well).
Any other suggestions?
BTW, i need a freeware tool ;)
Thanks!
ogwaroj
March 14th, 2008, 07:59 AM
vim is good but there is also emacs (or a variation of that name). I believe both are available for windows. Emacs is part of the FSF stuff (GNU) and is most definitely free.
JoderCoder
March 14th, 2008, 09:24 AM
Thanks!
Can I use Programmers Notepad for this?
like delete all the lines containing "bla di bla" for example
JoderCoder
March 14th, 2008, 09:42 AM
Actaully i ended up using VIM..
I am really a newbie in this kind of scripting, but as far as i can see, i need to write a script (.vim) and run the script when i load my log file.
I want to remove the lines containing this phrase for example "FromOS"
Can someone please help me on how to work this out?
ogwaroj
March 14th, 2008, 11:32 AM
I've not used vim a lot but as it is a derived from Unix's 'vi' I would imagine you can use all the editting facilities available including regular expressions etc.
If you want to dynamically run a scipt each time a file is loaded you can probably get 'ed', 'sed' or even 'awk' unix facilities for DOS. I am sure I have seen these available for free or not very much.
The 'man' pages for all these things are available onlne in numerous locations.
Cheers
Roj
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.