Re: Grep help
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62173
interpreted = N
texte = 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 helpI have a url appended to a database like this.(url comes from the use of fckeditor)www.kwasi.comor www.kwasi.com(that "space" may or may not be there depending on howthe user did their links)I need it to have a _blank inserted when viewedwww.kwasi.comComing close with this but not quite there:[grepsearch=(http://[+-;A-z0-9_\\:\/\.\~\`\?\+\-\=\#\%26]*)&replace=\1][blogtext][/grep]Should I maybe have 2 searches and replaces happeninghere??These are user input urls in a blog so consistency etcwill vary.Couldn't find any good grep explanations regarding thesyntax. All the grep unix pages i come acrossreference 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/
Associated Messages, from the most recent to the oldest:
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 helpI have a url appended to a database like this.(url comes from the use of fckeditor)www.kwasi.comor www.kwasi.com(that "space" may or may not be there depending on howthe user did their links)I need it to have a _blank inserted when viewedwww.kwasi.comComing close with this but not quite there:[grepsearch=(http://[+-;A-z0-9_\\:\/\.\~\`\?\+\-\=\#\%26]*)&replace=\1][blogtext][/grep]Should I maybe have 2 searches and replaces happeninghere??These are user input urls in a blog so consistency etcwill vary.Couldn't find any good grep explanations regarding thesyntax. All the grep unix pages i come acrossreference 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/
devaulw@onebox.com
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:
cookies (2001)
Values to Thankyou page lost? (1998)
Ok here is a question? (1997)
problems with 2 tags (1997)
PCS Frames (1997)
WebCatalog on OSX and %CPU (2003)
Text vs. Math (2000)
Nested tags count question (1997)
Can't use old cart file (was One more try) (1997)
[WebDNA] Hosting (2015)
[CONVERTCHARS] suggestion (2000)
Silly Question (1997)
This list needs a digest: rant, rave... (1997)
WebCat2 Append problem (B14Macacgi) (1997)
Re1000001: Setting up shop (1997)
Loss in form (1998)
Superfilous Characters (1998)
Problems passing [SKU] with $Replace in 2.0 (1997)
Tax and Shipping Examples (1997)
Multiple fields on 1 input (1997)