RE: [WebDNA] Grep
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 103986
interpreted = N
texte = That did the trick![ReplaceFoundItems]Title=3D[getchars start=3D1&end=3D&trim=3Dright][URL][De=scription1][/URL][/getchars] +[grep search=3D *$&replace=3D][URL][Descripti=on2][/URL][/grep][/ReplaceFoundItems]Thank you!-----Original Message-----From: Matthew Bohne [mailto:matthew.bohne@benetela.com]Sent: Tuesday, November 10, 2009 10:43 AMTo: talk@webdna.usSubject: Re: [WebDNA] Grep[URL] the text you are grepping (is that even a word?) before the grep.Space is %20, "+" is %2B Just grep out the %20...Mark Bergkvist wrote:>> I have the following code that combines two database fields into one> and removes extra spaces at the same time. But this seems to also be> removing the + (plus symbol) from the data as well, which I don't want> to happen. Example, the data "DVD+RW" becomes "DVD RW". Any ideas why> this might be happening?>> [!]First - Find blank Title fields and fill them in with Description1> and Description2 (using grep to remove extra spaces)[/!]>> [Search db=3Dprice2.txt&eqTitledata=3D[blank]][numfound]>> [ReplaceFoundItems]Title=3D[grep search=3D> *$&replace=3D][Description1][/grep] [grep search=3D> *$&replace=3D][Description2][/grep][/ReplaceFoundItems]>> [/Search]>---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list
.To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usold archives: http://dev.webdna.us/TalkListArchive/Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D=288
Associated Messages, from the most recent to the oldest:
That did the trick![replacefounditems]Title=3D[getchars start=3D1&end=3D&trim=3Dright][url][De=scription1][/URL][/getchars] +[grep search=3D *$&replace=3D][url][Descripti=on2][/URL][/grep][/ReplaceFoundItems]Thank you!-----Original Message-----From: Matthew Bohne [mailto:matthew.bohne@benetela.com]Sent: Tuesday, November 10, 2009 10:43 AMTo: talk@webdna.usSubject: Re: [WebDNA] Grep[url] the text you are grepping (is that even a word?) before the grep.Space is %20, "+" is %2B Just grep out the %20...Mark Bergkvist wrote:>> I have the following code that combines two database fields into one> and removes extra spaces at the same time. But this seems to also be> removing the + (plus symbol) from the data as well, which I don't want> to happen. Example, the data "DVD+RW" becomes "DVD RW". Any ideas why> this might be happening?>> [!]First - Find blank Title fields and fill them in with Description1> and Description2 (using grep to remove extra spaces)[/!]>> [Search db=3Dprice2.txt&eqTitledata=3D[blank]][numfound]>> [replacefounditems]Title=3D[grep search=3D> *$&replace=3D][Description1][/grep] [grep search=3D> *$&replace=3D][Description2][/grep][/ReplaceFoundItems]>> [/Search]>---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usold archives: http://dev.webdna.us/TalkListArchive/Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D=288
Mark Bergkvist
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:
Searching multiple Databases (1997)
prefs file not being written to (2000)
Limiting user access to .tmpl files (1997)
local IIS setup (2004)
carriage returns in data (1997)
when is date system date or order date? (1997)
Pager notification of completed orders (1998)
too many nested [xxx] (1997)
Searching multiple fields (1997)
Google Web Accelerator (2005)
[url] link (1998)
Multiple Ad databases? (1997)
A multi-processor savvy WebCatalog? (1997)
Shopping Cart - prices? (1997)
Re[2]: New syntax feedback for 4.0 (2000)
Categorizing by data (2001)
Reindexing a db with duplicate numbers... (1999)
psst (1997)
Multiple Newcarts (1996)
Latin Characters (1998)