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:
The max=0 issue is a bug ... (2000)
Help! (1996)
WebCatalog and directory indexing (1998)
emailer w/F2 (1997)
carriage returns in data (1997)
A two part question (1999)
Protect vs Authenicate (1997)
WebCat2b12plugin - [search] is broken ... not! (1997)
[WebDNA] WebDNA not running after 10.6.3 update (2010)
Car Database (2002)
More DateMath problems (1997)
RE: Answer: WebDelivery downloads alias, not original ? (1997)
WebCatalog stalls (1998)
WebCatalog2 Feature Feedback (1996)
Can't find templaes (1997)
Strange intermittent WebDNA problems Workaround (2008)
How to verify email address (1997)
Great product and great job ! (1997)
Almost a there but..bye bye NetCloak (1997)
WC2b12: Yes, Formulas.db is for real (1997)