Re: Turning a URL into a link
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 53138
interpreted = N
texte = Thanks John, couldn't figure out where to put that dang hyphen.GK-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf OfJohn PeacockSent: Thursday, September 25, 2003 11:06 AMTo: WebDNA TalkSubject: Re: Turning a URL into a linkGary 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 [grepsearch=(http://[-A-z0-9_\\:\/\.\~\`\?\+\-\=\#\%26]*)&replace=
\1][dbfield][/grep]NOTE: the hyphen by itself in the [] set doesn't trigger the this-thatbehavior.JohnWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------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:
Thanks John, couldn't figure out where to put that dang hyphen.GK-----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf OfJohn PeacockSent: Thursday, September 25, 2003 11:06 AMTo: WebDNA TalkSubject: Re: Turning a URL into a linkGary 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 [grepsearch=(http://[-A-z0-9_\\:\/\.\~\`\?\+\-\=\#\%26]*)&replace=\1][dbfield][/grep]NOTE: the hyphen by itself in the [] set doesn't trigger the this-thatbehavior.JohnWeb Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------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/
"Gary Krockover"
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:
Problems passing [SKU] with $Replace in 2.0 (1997)
Extended [ConvertChars] (1997)
Date or time comparisons have bugs ... (1998)
Public beta 2 for WebCatalog 4.0 is now available. (2000)
ShowIf Question (1998)
Running _every_ page through WebCat-error.html (1997)
Running 2 two WebCatalog.acgi's (1996)
WebCat2 - [include] tags (1997)
WebCat2 several catalogs? (1997)
[WebDNA] Poll: Cloud hosting (2016)
pass a captured value (2004)
Date Sorting (1997)
absolute paths for databases? (1997)
Caching [include] files ... (1997)
What if SSL server down? MAC (1997)
Date Question (2002)
Security Levels... Possible? (2000)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
RE: Problems with dbcatalog.exe (1997)
Searching multiple records for certain info (2000)