Contro we are going to have to start making a rule for you about the # of requests you can post per day :o-mouser (January 26, 2014, 11:58 AM)
Contro, you really ought to try Text Monkey Pro. It's not free ($30) but it can do all sorts of things to text files including the thing you mention in this post and many that you've mentioned in the past.
http://www.boxersoftware.com/tmfeat.htm
In the "Line Operations" section, there is a "Delete lines that contain user-specified text" option that should cover your need expressed in this thread.-skwire (January 26, 2014, 12:46 PM)
Contro, you really ought to try Text Monkey Pro. It's not free ($30) but it can do all sorts of things to text files including the thing you mention in this post and many that you've mentioned in the past.
http://www.boxersoftware.com/tmfeat.htm
In the "Line Operations" section, there is a "Delete lines that contain user-specified text" option that should cover your need expressed in this thread.-skwire (January 26, 2014, 12:46 PM)
:-* Running to try-Contro (January 26, 2014, 01:21 PM)
throwing my hat into DoCo's favourite past-time. :-\
@Contro: since you mentioned PSPad, there is a way to do what you wanted (or at least what i *think* you wanted) within PSPad.
1. Open the text file in PSPad.
2. Press Control + F to open the 'Find' dialog.
3. Type the "predefined" string.
4. Click "Copy non-matching" (see attached image).
5. Click the "Copy" button.
6. PSPad will open a *new* text file without the "predefined" string that you didn't want.
7. Now you just have to save it.
Attached image: PSPad Find Dialog-lanux128 (January 26, 2014, 11:59 PM)
Yes. But seems don't delete the entire line that contains the string, or mantain if is the case.can you post a screenshot of these lines? maybe that could give a clue as to why they are not being deleted.
:-*-Contro (January 27, 2014, 06:52 AM)
forgive me lanux128. I haven't tried. It just a thought the line will not be removed. The line contains the string, but you said that only the string will be removed in the copied file.Yes. But seems don't delete the entire line that contains the string, or mantain if is the case.can you post a screenshot of these lines? maybe that could give a clue as to why they are not being deleted.
:-*-Contro (January 27, 2014, 06:52 AM)-lanux128 (January 27, 2014, 06:59 AM)
forgive me lanux128. I haven't tried. It just a thought the line will not be removed. The line contains the string, but you said that only the string will be removed in the copied file.go ahead and try the method i have outlined. the beauty of this solution is that it wouldn't touch the original file so you can do a diff and see if the lines that you wanted gone are truly gone.
:-[-Contro (January 27, 2014, 07:10 AM)
I want to delete all the lines that begins with "dermatitis" without quotes.
But the effect is that all the lines are deleted.....-Contro (January 27, 2014, 05:54 PM)
I want to delete all the lines that begins with "dermatitis" without quotes.
But the effect is that all the lines are deleted.....-Contro (January 27, 2014, 05:54 PM)
Follow lanux128's steps but check the "Regular Expressions" box and use this as a search string: ^dermatitis
(see attachment in previous post (https://www.donationcoder.com/forum/index.php?topic=37085.msg347863#msg347863))-skwire (January 27, 2014, 06:48 PM)
Beatiful indeed. Thanks both of you very much.
After some knowledge of regex i am convinced is for good professionals like yours.-Contro (January 28, 2014, 02:32 PM)