Removing commas with exceptions

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
textlearner
Posts: 8
Joined: Sat Sep 09, 2006 2:53 pm

Removing commas with exceptions

Post by textlearner »

Hi again,

I'd like to remove all commas except for instances shown below:

", The"

",The"

Is this possible?

tia
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Try this, untested......

Search for: ,( [^t])
Replace with: \1

Note, there is a space character in the Search string before the "["
Hope this was helpful.............good luck,
Bob
textlearner
Posts: 8
Joined: Sat Sep 09, 2006 2:53 pm

Post by textlearner »

thanks it removed some, but some still remain at the end of sentences.
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Provide a sample of what still needs to be done.
Hope this was helpful.............good luck,
Bob
Post Reply