Re: [WebDNA] Display Live URL from a Block of Copy
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 101955
interpreted = N
texte = --0016e65097feb90e0504627a7c0dContent-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 7bitEddie,Something like this should work. I figure that there should only be twopossible characters at the end of a URL, a space or a carriage return. Sothe first grep checks for a carriage return and inserts a space, while thesecond checks for a space and than wraps the url in a 'a href'.Note that this doesn't check the validity of the URL, if you are puttingthis code on the landing page after a form submission then you need to checkthe correct hex code for a submitted carriage return.[grep search=http://([^ ]*)&replace=
\1][grepsearch=http://([^%0A]*)&replace=http://\1 ]http://www.url1.com/http://www.url2.com/test/test?test=test$ http://www.url3.co.uk[/grep][/grep]- Tom--0016e65097feb90e0504627a7c0dContent-Type: text/html; charset=UTF-8Content-Transfer-Encoding: quoted-printableEddie,
Something like this should work. I figure that th=ere should only be two possible characters at the end of a URL, a space or =a carriage return. So the first grep checks for a carriage return and= inserts a space, while the second checks for a space and than wraps the ur=l in a 'a href'.
Note that this doesn't check the validity of the UR=L, if you are putting this code on the landing page after a form submission= then you need to check the correct hex code for a submitted carriage retur=n.
[grep search=3Dhttp://([^ ]*)&r=eplace=3D<a href=3D"http://\1">\1</a>][grep search=3D=http://([^%0A]*)&replace=3Dhttp://\1 ]
[/grep][/grep]
--0016e65097feb90e0504627a7c0d--
Associated Messages, from the most recent to the oldest:
--0016e65097feb90e0504627a7c0dContent-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 7bitEddie,Something like this should work. I figure that there should only be twopossible characters at the end of a URL, a space or a carriage return. Sothe first grep checks for a carriage return and inserts a space, while thesecond checks for a space and than wraps the url in a 'a href'.Note that this doesn't check the validity of the URL, if you are puttingthis code on the landing page after a form submission then you need to checkthe correct hex code for a submitted carriage return.[grep search=http://([^ ]*)&replace=
\1][grepsearch=http://([^%0A]*)&replace=http://\1 ]http://www.url1.com/http://www.url2.com/test/test?test=test$ http://www.url3.co.uk[/grep][/grep]- Tom--0016e65097feb90e0504627a7c0dContent-Type: text/html; charset=UTF-8Content-Transfer-Encoding: quoted-printableEddie,
Something like this should work. I figure that th=ere should only be two possible characters at the end of a URL, a space or =a carriage return. So the first grep checks for a carriage return and= inserts a space, while the second checks for a space and than wraps the ur=l in a 'a href'.
Note that this doesn't check the validity of the UR=L, if you are putting this code on the landing page after a form submission= then you need to check the correct hex code for a submitted carriage retur=n.