Advanced text editing software


  1. Posts : 92
    Windows 7 Home Premium 64bit
       #1

    Advanced text editing software


    I have a large list in a text file (roughly 900 items) and I want to do a few things to the list. First, I want to remove everything after a space on each line, including the spaces themselves. Then, I want to remove every line that does not have the either of these formats:

    • ***kAA**
    • ***kA**

    Where "k" is the actual letter "k", "A" represents a random lowercase letter, and "*" represents a random number. Does anyone know a good program/web tool I can use to accomplish this?
      My Computer


  2. Posts : 2,465
    Windows 7 Ultimate x64
       #2

    The first thing is trivial, even something as rustic as the built-in notepad can handle this, with the search and replace function.
    For the second point, I'm pretty sure that a regular expression search can do the trick, again with a search and replace. I don't know regular expressions myself but possibly that tool will fit that search. I use Notepad2 myself and it can do that, and Notepad++ is another very capable editor.
      My Computer


  3. Posts : 1,210
    Windows 7 Ultimate x64 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
       #3

    I would suggest Notepad++ or Editplus (Trial).
    Both are very capable editors and are very good at what they do.
      My Computer


  4. Posts : 92
    Windows 7 Home Premium 64bit
    Thread Starter
       #4

    I downloaded Notepad++, but how do you type an unknown letter/number in find/replace? Also, I'm pretty sure you can't do the first one in Notepad because of the "and everything after" part.

    EDIT: Just found an inefficient way to do part 1 with macros, so that one doesn't matter now
    EDIT2: I figured out the wildcard character, closing topic
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:39.
Find Us