Page 1 of 1

Find in Files / Regular Expressions

Posted: Sun Jun 15, 2003 10:01 pm
by hotspur95
hi!
Maybe someone here can help me.

What i need to do is a find in files (many files!) to grab lots of data. I then want to remove all the duplicates.

However, once you do a FIF you get a lot of bumf about what file it came from etc, all before the colon eg :

10.zon.txt(92): E 1 1005 30 8 Boots

I dont want any of the stuff before the colon and try as I might I can neither stop FIF from giving it to me or find the right RE to dispose of it!

Thanks for any help offered!

Posted: Sun Jun 15, 2003 10:45 pm
by Bob Hansen
Try this:

Starting with:
10.zon.txt(92): E 1 1005 30 8 Boots

Search for:
\(.\)+\(:\)

Replace with:
\2

End up with:
: E 1 1005 30 8 Boots
============================
Hope this helps......good luck....

Posted: Sun Jun 15, 2003 11:49 pm
by hotspur95
That was perfect!

Thanks very much :D :D