Page 1 of 1

Deleting URLs

Posted: Fri Mar 12, 2010 1:51 pm
by Crunching
How to delete URL from a line and leave only the text.

For example -
The cat is in the bag ... http://bit.ly/btEcow

to become -
The cat is in the bag ...

To do this In Excel it is
Find: http:*
Replace: (leave empty)

What is the procedure to do this in TextPipe?

Re: Deleting URLs

Posted: Mon Mar 15, 2010 1:31 pm
by DataMystic Support
Find perl pattern: http[^\r\n]*?
Replace with: <blank>

Re: Deleting URLs

Posted: Tue Mar 16, 2010 2:18 pm
by Crunching
This procedure gives the answer -
The cat is in the bag ... ://bit.ly/btEcow

But looking to give answer -
The cat is in the bag ...

Re: Deleting URLs

Posted: Tue Mar 16, 2010 3:22 pm
by DataMystic Support
ok, use

Find perl pattern: http[^\r\n]*

or uncheck the option to do greedy matching.

Re: Deleting URLs

Posted: Tue Mar 16, 2010 9:23 pm
by Crunching
Thank you for your assistance.