Not sure if textpipe will do this with a hyperlink...

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Post Reply
ezinestein
Posts: 13
Joined: Sat Nov 10, 2007 11:10 am

Not sure if textpipe will do this with a hyperlink...

Post by ezinestein » Tue Feb 15, 2011 12:15 pm

Hello,

I have a bunch of urls like this...
[http://domain.com/?some-text-in-here-se ... &id=123456]

Is there anyway for me to turn this into a hyperlink... so the end result would be...
<a href="http://domain.com/?SOME-TEXT-IN-HERE&id=123456">SOME TEXT IN HERE</a>

I know how to put the <a href> and the </a> on the sides, what I can't figure out is how to take the initial 'dashed' SOME-TEXT-IN-HERE and add it WITHOUT the dashes to the end of the line before the </a>

Is this impossible?

Any help much appreciated.

thx,
Ed Stein

User avatar
DataMystic Support
Site Admin
Posts: 2279
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Not sure if textpipe will do this with a hyperlink...

Post by DataMystic Support » Wed Feb 16, 2011 7:29 am

Easy Ed,

The trick is to use a second search/replace, to match

Code: Select all

<a href="http://domain.com/?(.*)">(.*)</a>
and to send the Expression 2 to a subfilter.

Them, add a subfilter to this search/replace, which simply replaces '-' with a space, and/or re-capitalizes the text.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

ezinestein
Posts: 13
Joined: Sat Nov 10, 2007 11:10 am

Re: Not sure if textpipe will do this with a hyperlink...

Post by ezinestein » Thu Feb 17, 2011 10:50 am

Thanks so much for this! It took me two hours to figure out how to use what you wrote but that's because I still don't know how to use textpipe properly. But thanks again!! As it was your answer that helped me learn what to do.

Kindly,
ed

Post Reply