How to delete characters in body

General discussions about Advanced Find and Replace
Post Reply
bensonlr
Posts: 1
Joined: Sat Sep 29, 2007 1:55 pm

How to delete characters in body

Post by bensonlr »

I have a large group of .txt files and each one has only one line of text that looks like this.

1534N - There's Peace In Knowing

I want to remove every thing before the title so it will look like this.

There's Peace In Knowing

So, I have tried using the replace with delete and set the mask to * - *.txt

And then use wild characters ??????-?

But nothing gets found.

Help appreciated!

Abacre
Site Admin
Posts: 1223
Joined: Mon Jan 31, 2005 5:32 pm

Re: How to delete characters in body

Post by Abacre »

Go to Batch replace tab, check on "Use regular expressions".
Put into the grid, search for:
^.*\s-\s

Replace with:
should be empty.

That's all I verified it works perfectly.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

Post Reply