Re: Turning a URL into a link
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53137
interpreted = N
texte = Gary Krockover wrote:> I noticed the same. Also, if the URL has a hyphen, the grep stops just> before it (as in www.some-website.com)> > Would there be an easy fix for that perhaps? :)Yes, add hyphen to the list of permissible characters in the grep:> > [grep search=(http://[A-z0-9_\\:\/\.\~\`\?\+\-\=\#\%26]*)&replace=
href="\1" TARGET="_blank">\1][dbfield][/grep]> becomes [grep search=(http://[-A-z0-9_\\:\/\.\~\`\?\+\-\=\#\%26]*)&replace=
\1][dbfield][/grep]NOTE: the hyphen by itself in the [] set doesn't trigger the this-that behavior.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Gary Krockover wrote:> I noticed the same. Also, if the URL has a hyphen, the grep stops just> before it (as in www.some-website.com)> > Would there be an easy fix for that perhaps? :)Yes, add hyphen to the list of permissible characters in the grep:> > [grep search=(http://[A-z0-9_\\:\/\.\~\`\?\+\-\=\#\%26]*)&replace= href="\1" TARGET="_blank">\1][dbfield][/grep]> becomes [grep search=(http://[-A-z0-9_\\:\/\.\~\`\?\+\-\=\#\%26]*)&replace=\1][dbfield][/grep]NOTE: the hyphen by itself in the [] set doesn't trigger the this-that behavior.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
John Peacock
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
How do you cause a new window to appear behind the current (1999)
taxrate - off by 1 cent (1997)
RE: Formulas.db + Users.db (1997)
WebCatalog Features (1997)
Grep Search and Replace (2002)
MasterCounter Weirdness -Resolved! (1997)
Bit off subject -- Faxing orders (1997)
MacAuthorize hub, no modal password dialog? (1997)
Multi-processor Mac info ... (1997)
[writefile] (1997)
totals (1997)
SPAM attempts through WebDNA (Was Serious WebDNA Issue) (2006)
Don't know if this is a sily question... (2003)
TCPConnect & Post (2002)
About Include (2001)
fixed date problem (1997)
WC2f3 (1997)
item sorting (1997)
how to include a name in from or to using Sendmail? (2003)
Setting Cart value (2000)