Page 1 of 1

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

Posted: Tue Feb 15, 2011 12:15 pm
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

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

Posted: Wed Feb 16, 2011 7:29 am
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.

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

Posted: Thu Feb 17, 2011 10:50 am
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