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

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, 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 »

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: 2227
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 »

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.
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 »

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