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 Of John Peacock Sent: Thursday, September 25, 2003 11:06 AM To: WebDNA Talk Subject: Re: Turning a URL into a link 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 Web 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:

    
  1. Re: Turning a URL into a link ( Jesse Williams-Proudman 2003)
  2. Re: Turning a URL into a link ( "Gary Krockover" 2003)
  3. Re: Turning a URL into a link ( John Peacock 2003)
  4. Re: Turning a URL into a link ( "Gary Krockover" 2003)
  5. Re: Turning a URL into a link ( Phil Herring 2003)
  6. Re: Turning a URL into a link ( Jesse Williams-Proudman 2003)
  7. Turning a URL into a link ( Phil Herring 2003)
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 Of John Peacock Sent: Thursday, September 25, 2003 11:06 AM To: WebDNA Talk Subject: Re: Turning a URL into a link 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 Web 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:

[LOOKUP] (1997) Change to 5.0 per website licensing (2003) accountnum using [listwords] (2001) sendmail and accented characters (1998) WebCatalog can't find database (1997) Was 5.0 Pricing, now Sandbox versus Website and ruminating (2003) Format of Required fields error message (1997) [searchString] (1997) Roundup function? (1997) Solution: Replace/Commit not Replacing/Commiting (2000) carriage returns in data (1997) Still having install problems (2000) Listfiles on network with NT (2000) WebDNA Intranet Edition public demo (2002) [OT] 'Email this story to a friend' (2003) Migrating to NT (1997) WC2b12: Yes, Formulas.db is for real (1997) ADMIN ACCESS (1999) taxTotal, grandTotal (1997) New Cart No. on same page (2003)