CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2008
    Posts
    28

    Regular Expressions TExt Editor

    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!

  2. #2
    Join Date
    Jan 2008
    Posts
    8

    Re: Regular Expressions TExt Editor

    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.

  3. #3
    Join Date
    Feb 2008
    Posts
    28

    Re: Regular Expressions TExt Editor

    Thanks!

    Can I use Programmers Notepad for this?

    like delete all the lines containing "bla di bla" for example

  4. #4
    Join Date
    Feb 2008
    Posts
    28

    Re: Regular Expressions TExt Editor

    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?

  5. #5
    Join Date
    Jan 2008
    Posts
    8

    Re: Regular Expressions TExt Editor

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured