Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Breaking links...

Status
Not open for further replies.

webmigit

Programmer
Joined
Aug 3, 2001
Messages
2,027
Location
US
Code:
<CFSCRIPT>
    this = Attributes.Data;
	this = REReplaceNoCase(this, &quot;(((file:///)|([a-z]:\\)|(\\\\[[:alpha:]]))+(\.?[[:alnum:]\/=^@*|:~`+$%?_##& -])+)&quot;, &quot;<A TARGET=&quot;&quot;_blank&quot;&quot; HREF=&quot;&quot;\1&quot;&quot;>left(\1,1</A>&quot;, &quot;ALL&quot;);
	this = REReplaceNoCase(this, &quot;([[:alnum:]]*://[[:alnum:]\@-]*(\.[[:alnum:]][[:alnum:]-]*[[:alnum:]]\.)?[[:alnum:]]{2,}(\.?[[:alnum:]\/=^@*|:~`+$%?_##&-])+)&quot;, &quot;<A TARGET=&quot;&quot;_blank&quot;&quot; HREF=&quot;&quot;\1&quot;&quot;>\1</A>&quot;, &quot;ALL&quot;);
	this = REReplaceNoCase(this, &quot;(([[:alnum:]][[:alnum:]_.-]*)?[[:alnum:]]@[[:alnum:]][[:alnum:].-]*\.[[:alpha:]]{2,})&quot;, &quot;<A HREF=&quot;&quot;mailto:\1&quot;&quot;>\1</A>&quot;, &quot;ALL&quot;);
</CFSCRIPT>

Hi.. I know this has to make sense to somebody out there... What I want to do is kinda... break links with <BR> every 65 characters.. and in trying this, I found one thing out.. regexes don't like me.. so I have to come to you guys for help... can it be done? Really long links throw off my page wrapping and everything.
 

<a href=&quot;#theFullLink#&quot;>#Left(theFullLink,65)#...</a> Sylvano
dsylvano@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top