Re: Grep help
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62175
interpreted = N
texte = >From this:
www.kwasi.comI get this:
>www.kwasi.comThat middle " > " in the replace is sorta what Iwas getting in what Gary recoommended. All falls apartat 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/
Associated Messages, from the most recent to the oldest:
>From this: www.kwasi.comI get this:>www.kwasi.comThat middle " > " in the replace is sorta what Iwas getting in what Gary recoommended. All falls apartat 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/
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:
[writefile] (1997)
[subtotal] and others (1997)
WebCat2b13MacPlugIn - [include] (1997)
Bug or syntax error on my part? (1997)
PIXO Support (1997)
Secure server question (1997)
WebCat2b13MacPlugIn - syntax to convert date (1997)
SSL and reg web* (1997)
Webcat not processed for CACHEd image error pages (1998)
Looking for a host (1997)
WebCat2b12 CGI Mac - [shownext] problem (1997)
MacWEEK article help needed (1996)
Running _every_ page through WebCat ? (1997)
Duplicate Cart #'s (1998)
showif and cart (1997)
WebCat on 10.0.4 - iTools 6.0 (2001)
Server crash (1997)
Protect (1997)
[searchString] (1997)
[TaxableTotal] - not working with AOL and IE (1997)