Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Advanced text editing software

19 Mar 2014   #1

Windows 7 Home Premium 64bit
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 System SpecsSystem Spec
19 Mar 2014   #2

Windows 7 Ultimate x64

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 System SpecsSystem Spec
19 Mar 2014   #3

Windows 7 Ultimate x64 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx

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

20 Mar 2014   #4

Windows 7 Home Premium 64bit

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 System SpecsSystem Spec

 Advanced text editing software

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar help and support threads
Thread Forum
Help with editing/deleting text in window
Not sure if this belongs here, but what the heck. I downloaded the program 'Wondershare,' I needed to convert some videos to disk so I could play them on my home dvd player. I decided I didn't like the program so I deleted it through the Programs and Features in the Control Panel. However, it...
General Discussion
Excel advanced conditional editing help needed
Hi I have two excel files. One is inventory and other is ip plan. The inventory document has a alot of data. Of them One column is of computer name and second is ip. The ip plan has one column consisting of ip and next to it the user name and some other information. Now I want the ip...
Microsoft Office
Protecting permission editing on a text file
So I'm wondering is there a way to have a text file editable only by certain local users? In other words, if I were to open the file in another computer via flash drive, is there a way to prevent someone from changing both the file contents and (especially) its permissions?
General Discussion
text editing
Hi, when I edit a text in win7 .txt format, is there a hidden header that registers other info like the name of the computer, date, etc? If yes, how can I see it? Thank´s
General Discussion
Any Text editing software which I can copy formatting to blog post.
Hi all, is there any simple text editing software which I can do bolding, underlining and all and when I copy the text over to my Wordpress blog, the bolding and all that will remain ? I got tired of re-underlining stuff =/ . Thanks alot ~ :geek:
No "Turn off advanced text services” option for windows 7?
Is this option worded differently on 7? Because I cannot find it. I need to do this for a program. Thanks
General Discussion

Our Sites

Site Links

About Us

Find 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 18:17.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App