Help with TextWrangler Wildcard search

Joined
Mar 1, 2012
Messages
1
Reaction score
0
Points
1
I have a really HUGE text file and I am pretty new to using hardcore wildcard searches.

My problem is that I have a list like this:
641 "044176 wwwwDELETE_THIS1zzzz
642 "015-1139-00 wwwwDELETE_THIS2zzzz; 1530661 wwwwDELETE_THIS3zzzz

This is what I want:
641 "044176
642 "015-1139-00 ; 1530661

This is how I am searching...
FIND: wwww(.*)zzzz
REPLACE: ~blank because I want to delete the selections~

This works fine for line 641, but my search selects from the first "wwww" all the way to the last "zzzz", deleting everything in between.

This is the bad result:
641 "044176
642 "015-1139-00

I've been at it for hours, scoured the forums, pulled out all my hair... can some kind soul please, please, PLEASE point me in the right direction?

Thanks,
Mike

PS, quick side question: how do I add text to the end of a line? Would I...
FIND: $
REPLACE: added text$
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top