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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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:

    
  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)
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 Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 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:

Did this just get cheaper ? (2003) Searching an Email database (1997) Help with (2003) OPEN MARKET PATENTS SOUND ECOMMERCE ALARM (1998) Includeform Error (2002) NT or Mac (1997) Line items in table cells (1997) Cookies and webcat (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Using Applescript to process WebCatalog functions (1998) can you take a look (2003) Strange search... (2001) Re:listfiles-looking for slick solution (1997) $Replace with [founditems] (1997) RE: IIS 4 (1998) no [search] with NT (1997) Online reference (1997) Cart doesn't interpret tag! (1997) Re:quit command on NT (1997) suffix mapping for NT? (1997)