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:
SMITH MICRO: FW: Emailer stops on Win 2000 (2002)
Paranoid about serial numbers...not (1998)
WebCommerce: Folder organization ? (1997)
Redirect to _parent? (2002)
question: search return in order (1997)
fieldType=num (1997)
Math (1997)
NetForms for mail, sorry (1998)
[WebDNA] Internal [ipaddress] ? (2009)
Shipping rate x Quantity solution needed (2000)
WebCommerce: Folder organization ? (1997)
Sorting by date (1997)
The Form authentication trick (2000)
Practice runs ? (1997)
Trouble with formula.db + more explanation (1997)
WebCatalog Help (2002)
Appending space (1998)
New Beta Documentation (1997)
View Source from cache (1997)
Re:listfiles-looking for slick solution (1997)