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:
Rhapsody? (1997)
MacOS X Server problems (2001)
MacAuthorize hub, no modal password dialog? (1997)
spawn (1998)
Postdata expired from cache (2004)
Resume Catalog ? (1997)
More on the email templates (1997)
JS and Webcatalog (2001)
[lottaCopy] through SSL (1998)
country of origin from IPADDRESS??? (2001)
2.1 pricing? (1998)
More on the email templates (1997)
Am I going senile? (Price recalc based on quantity) (1997)
PSC recommends what date format yr 2000??? (1997)
quitting (1997)
Cancel Subscription (1996)
looking for developers with solutions (2000)
Issue with plug-in Webcat, webstar 4.x, SSL and IE when using the backbuttom (2000)
cookie based login process (2004)
!@#$$@@# formulas database, tax and freight. (2002)