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:
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
emailer prob (1998)
Chown www:wheel Almost There WebCat 5 on itools 7 (2003)
triggers.db (1999)
WebCat2b13MacPlugIn - [include] (1997)
Hierarchy of form/text/math variables (2000)
[Sum] function? (1997)
webmerch and serials - almost there (1997)
Share cost of training videos! (1998)
hidden (phantom) file downloads (2000)
[WebDNA] Secure Cookies (2020)
3.0 [TEXT] variables (1998)
HTML editing and webcatalog (2000)
Help name our technology! (1997)
variables in [addlineitem] (1998)
Personal Web Server combined with Webcatalog 2.1 (1998)
Showif, Hideif reverse logic ? (1997)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
The Send Mail Button is the Best Troubleshooter (1998)
WebCat2 Append problem (B14Macacgi) (1997)