Re: Grep help

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62176
interpreted = N
texte = This works fine..... [grep search=([url]href="[^"]*"[/url])&replace=\1 target="blank"][blogtext][/grep] I seemed to have some tray characters at the end that were causing weirdness thanks for the tips.... onward --- Lester wrote: > From this: > www.kwasi.com > I get this: > > > www.kwasi.com > > That middle " > " in the replace is sorta what > I > was getting in what Gary recoommended. All falls > apart > at that spot again it seems. > > > > --- devaulw@onebox.com wrote: > > > search=([url]href="[^"]*"[/url]) > > replace=\1[url] target="blank"[/url]> > > > > That is where I'd start. The trick is getting the > = > > by the parser. > > > > Bill > > > > -----Original Message----- > > From: Lester > > Sent: Sat, 11 Jun 2005 06:56:26 -0700 (PDT) > > To: "WebDNA Talk" > > > > Subject: Grep help > > > > I have a url appended to a database like this. > > (url comes from the use of fckeditor) > > > > www.kwasi.com > > or > > www.kwasi.com > > (that "space" may or may not be there depending on > > how > > the user did their links) > > > > > > I need it to have a _blank inserted when viewed > > > > > > www.kwasi.com > > > > > > Coming close with this but not quite there: > > > > [grep > > > search=(http://[+-;A-z0-9_\\:\/\.\~\`\?\+\-\=\#\%26]*)&replace= > href="\1" TARGET="_blank">\1][blogtext][/grep] > > > > Should I maybe have 2 searches and replaces > > happening > > here?? > > > > > > These are user input urls in a blog so consistency > > etc > > will vary. > > > > Couldn't find any good grep explanations regarding > > the > > syntax. All the grep unix pages i come across > > reference command line type use. > > > > > > Thanks > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > http://mail.yahoo.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/ > > > > > > > > > ------------------------------------------------------------- > > 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/ > > > > > >  > __________________________________ > Discover Yahoo! > Get on-the-go sports scores, stock quotes, news and > more. Check it out! > http://discover.yahoo.com/mobile.html > > ------------------------------------------------------------- > 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/ > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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: [WebDNA] Grep help - catch all URLs (Tom Duke 2010)
  2. Re: [WebDNA] Grep help - catch all URLs (Stuart Tremain 2010)
  3. [WebDNA] Re: Grep help - catch all URLs (Tom Duke 2010)
  4. [WebDNA] Grep help - catch all URLs (Tom Duke 2010)
  5. Re: OT Grep Help ( Donovan Brooke 2008)
  6. Re: OT Grep Help ( Marc Thompson 2008)
  7. Re: OT Grep Help ( Donovan Brooke 2008)
  8. Re: OT Grep Help ( Marc Thompson 2008)
  9. OT Grep Help ( Donovan Brooke 2008)
  10. Re: Grep Help ( Alex McCombie 2007)
  11. Re: Grep Help ( Gary Krockover 2007)
  12. Re: Grep Help ( thierry 2007)
  13. Re: Grep Help ( "Gary Krockover" 2007)
  14. Re: Grep Help ( Donovan Brooke 2007)
  15. Re: Grep Help ( Gary Krockover 2007)
  16. Re: Grep Help ( Donovan Brooke 2007)
  17. Re: Grep Help ( Alex McCombie 2007)
  18. Re: Grep Help ( "Olin Lagon" 2007)
  19. Grep Help ( Alex McCombie 2007)
  20. Re: Grep help ( Lester 2005)
  21. Re: Grep help ( Lester 2005)
  22. Re: Grep help ( devaulw@onebox.com 2005)
  23. Grep help ( Lester 2005)
  24. Re: [OT] grep help ( John Peacock 2004)
  25. Re: [OT] grep help ( devaulw@onebox.com 2004)
  26. [OT] grep help ( Mark Derrick 2004)
  27. Re: Grep help needed ( Gary Krockover 2004)
  28. Re: Grep help needed ( Bob Minor 2004)
  29. Re: Grep help needed ( William DeVaul 2004)
  30. Grep help needed ( Gary Krockover 2004)
  31. Re: Grep help ( devaulw@onebox.com 2004)
  32. Re: Grep help ( Patrick McCormick 2004)
  33. Re: Grep help ( John Peacock 2004)
  34. Re: Grep help ( Patrick McCormick 2004)
  35. Re: Grep help ( devaulw@onebox.com 2004)
  36. Re: Grep help ( Patrick McCormick 2004)
  37. Grep help ( Patrick McCormick 2004)
  38. Re: Grep help ( Clint Davis 2004)
  39. Re: Grep help ( "Rajeev Kumar" 2004)
  40. Re: Grep help ( John Peacock 2004)
  41. Grep help ( "Rajeev Kumar" 2004)
  42. Re: WebDNA Grep help wanted ( Kenneth Grome 2004)
  43. Re: WebDNA Grep help wanted ( Gary Krockover 2004)
  44. Re: WebDNA Grep help wanted ( Kenneth Grome 2004)
  45. Re: WebDNA Grep help wanted ( William DeVaul 2004)
  46. Re: WebDNA Grep help wanted ( Kenneth Grome 2004)
  47. Re: WebDNA Grep help wanted ( Gary Krockover 2004)
  48. Re: WebDNA Grep help wanted ( devaulw@onebox.com 2004)
  49. Re: WebDNA Grep help wanted ( devaulw@onebox.com 2004)
  50. Re: WebDNA Grep help wanted ( "Andrew Simpson" 2004)
  51. Re: WebDNA Grep help wanted ( Palle Bo Nielsen 2004)
  52. Re: WebDNA Grep help wanted ( "Andrew Simpson" 2004)
  53. WebDNA Grep help wanted ( Palle Bo Nielsen 2004)
  54. Grep Help ( Donovan Brooke 2003)
  55. Re: Grep Help ( Matthew Bohne 2003)
  56. Grep Help ( Matthew Bohne 2003)
  57. Re: Grep Help ( Stuart Tremain 2003)
  58. Grep Help ( Jesse Williams-Proudman 2003)
  59. Re: Grep Help ( William DeVaul 2003)
  60. Grep Help ( Jesse Williams-Proudman 2003)
  61. Re: Grep Help ( Jesse Williams-Proudman 2003)
  62. Re: Grep Help ( Jesse Williams-Proudman 2003)
  63. Re: Grep Help ( Alain Russell 2003)
  64. Grep Help ( Jesse Williams-Proudman 2003)
  65. Re: Grep help, please ... (Nitai @ ComputerOil 2003)
  66. Re: Grep help, please ... (Kenneth Grome 2003)
  67. Re: Grep help, please ... (Nitai @ ComputerOil 2003)
  68. Re: Grep help, please ... (Dennis J. Bonsall, Jr. 2003)
  69. Re: Grep help requested (Jim Lanford 2002)
  70. Re: GREP Help (John Peacock 2001)
This works fine..... [grep search=([url]href="[^"]*"[/url])&replace=\1 target="blank"][blogtext][/grep] I seemed to have some tray characters at the end that were causing weirdness thanks for the tips.... onward --- Lester wrote: > From this: > www.kwasi.com > I get this: > > > www.kwasi.com > > That middle " > " in the replace is sorta what > I > was getting in what Gary recoommended. All falls > apart > at that spot again it seems. > > > > --- devaulw@onebox.com wrote: > > > search=([url]href="[^"]*"[/url]) > > replace=\1[url] target="blank"[/url]> > > > > That is where I'd start. The trick is getting the > = > > by the parser. > > > > Bill > > > > -----Original Message----- > > From: Lester > > Sent: Sat, 11 Jun 2005 06:56:26 -0700 (PDT) > > To: "WebDNA Talk" > > > > Subject: Grep help > > > > I have a url appended to a database like this. > > (url comes from the use of fckeditor) > > > > www.kwasi.com > > or > > www.kwasi.com > > (that "space" may or may not be there depending on > > how > > the user did their links) > > > > > > I need it to have a _blank inserted when viewed > > > > > > www.kwasi.com > > > > > > Coming close with this but not quite there: > > > > [grep > > > search=(http://[+-;A-z0-9_\\:\/\.\~\`\?\+\-\=\#\%26]*)&replace= > href="\1" TARGET="_blank">\1][blogtext][/grep] > > > > Should I maybe have 2 searches and replaces > > happening > > here?? > > > > > > These are user input urls in a blog so consistency > > etc > > will vary. > > > > Couldn't find any good grep explanations regarding > > the > > syntax. All the grep unix pages i come across > > reference command line type use. > > > > > > Thanks > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > http://mail.yahoo.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/ > > > > > > > > > ------------------------------------------------------------- > > 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/ > > > > > >  > __________________________________ > Discover Yahoo! > Get on-the-go sports scores, stock quotes, news and > more. Check it out! > http://discover.yahoo.com/mobile.html > > ------------------------------------------------------------- > 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/ > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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/ Lester

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:

WCS Newbie question (1997) form crasehes server (1997) Weird Math and SV (1997) Adding insurance (2003) Non-Cart Files in Shopping Cart Folder (1997) Setting up shop (1997) Loops and [index] (1998) Nested search (1997) Tracking (2004) quantity minimum problem (1997) [OT] Server check please (2006) my price won't move (1997) Multiple Replaces? (1997) Payment calculator ?? (2000) two unique banners on one page (1997) WebCat2b15MacPlugin - showing [math] (1997) Webmerchant/Cybercash (2000) HTML encoding in URLs (1997) Locking up with WebCatalog... (1997) [WebDNA] feature requests (2008)