RE: [WebDNA] Grep
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 103984
interpreted = N
texte = Ok, so I have done some testing and followed everyones suggestion but still= having the problem with the + sign disappearing.So I did a test with this code: [Search db=3Dtest.txt&eqTitledata=3D[blank]][numfound]
Test A: [getchars start=3D1&end=3D&trim=3Dright][Description1][/get=chars] [grep search=3D *$&replace=3D][Description2][/grep]
Test B: [ReplaceFoundItems]Title=3D[getchars start=3D1&end=3D&trim==3Dright][Description1][/getchars] [grep search=3D *$&replace=3D][Descripti=on2][/grep][/ReplaceFoundItems] [/Search]The results from Test A were what was expected: 25PK DVD+RW 16X 4.7GB BRAND=ED SPINDLEThe results from Test B were not: 25PK DVD RW 16X 4.7GB BRANDED SPINDLEIt seem to me that there is something going on with the [ReplaceFoundItems]= command. Any thoughts?-----Original Message-----From: Govinda [mailto:govinda.webdnatalk@gmail.com]Sent: Tuesday, November 10, 2009 10:47 AMTo: talk@webdna.usSubject: Re: [WebDNA] GrepPS - those are double spaces inside the grep search param. (in thelast test I posted)------------Govindagovinda.webdnatalk@gmail.com---------------------------------------------------------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:
Ok, so I have done some testing and followed everyones suggestion but still= having the problem with the + sign disappearing.So I did a test with this code: [Search db=3Dtest.txt&eqTitledata=3D[blank]][numfound]
Test A: [getchars start=3D1&end=3D&trim=3Dright][Description1][/get=chars] [grep search=3D *$&replace=3D][Description2][/grep]
Test B: [replacefounditems]Title=3D[getchars start=3D1&end=3D&trim==3Dright][Description1][/getchars] [grep search=3D *$&replace=3D][Descripti=on2][/grep][/ReplaceFoundItems] [/Search]The results from Test A were what was expected: 25PK DVD+RW 16X 4.7GB BRAND=ED SPINDLEThe results from Test B were not: 25PK DVD RW 16X 4.7GB BRANDED SPINDLEIt seem to me that there is something going on with the [replacefounditems]= command. Any thoughts?-----Original Message-----From: Govinda [mailto:govinda.webdnatalk@gmail.com]Sent: Tuesday, November 10, 2009 10:47 AMTo: talk@webdna.usSubject: Re: [WebDNA] GrepPS - those are double spaces inside the grep search param. (in thelast test I posted)------------Govindagovinda.webdnatalk@gmail.com---------------------------------------------------------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:
Image download problem (2001)
Generating Options for a Form. (1997)
Upgrade Price Problems (2000)
[searchString] (1997)
Using Plug-In while running 1.6.1 (1997)
File Uploads: WebCat/SiteEdit (1998)
Fileinfo... (2000)
WebDNA Developer Resource Center (2002)
Multiple fields on 1 input (1997)
WebCat2.0b15-to many nested [xx] tags (1997)
RE: [WebDNA] Build Name for 6.1 (2008)
Exclamation point (1997)
Carts & Refering URLs (1997)
ExclusiveLock (2000)
Subtotal help (1997)
Date to Daze (1999)
Nested searches (1998)
SIMS Email Question (2003)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
[convertchars] problem... (2000)