Find in Files / Regular Expressions

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
hotspur95
Posts: 2
Joined: Sun Jun 15, 2003 9:58 pm

Find in Files / Regular Expressions

Post 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!
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post 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....
hotspur95
Posts: 2
Joined: Sun Jun 15, 2003 9:58 pm

Post by hotspur95 »

That was perfect!

Thanks very much :D :D
Post Reply