--------------000902000003000103000507-- Associated Messages, from the most recent to the oldest:I was trying to using this code to extract all the occurrences ofabc from the original ts value:[text]ts=abc123abc456abc789abc000[/text][loop start=1&end=9][text]ts=[middle startafter=abc][ts][/middle][/text][appendfile lines][index]-[ts][/writefile][/loop]I was expecting this:1-123abc456abc789abc0002-456abc789abc0003-789abc0004-0005-6-7-8-9-But instead I got this:1-123abc456abc789abc0002-456abc789abc0003-789abc0004-0005-0006-0007-0008-0009-000I had expected middle to produce blank/empty results when it couldnot find the first occurrence of abc, but instead it returned theentire ts value.Has middle always worked like this, and I have simply never usedmiddle in this manner during 20 years of WebDNA programming?Or is this a glitch or bug?Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server Management---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list <talk@webdna.us>.To unsubscribe, E-mail to: <talk-leave@webdna.us>archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us
|
--------------000902000003000103000507-- WebDNAI was trying to using this code to extract all the occurrences ofabc from the original ts value:[text]ts=abc123abc456abc789abc000[/text][loop start=1&end=9][text]ts=[middle startafter=abc][ts][/middle][/text][appendfile lines][index]-[ts][/writefile][/loop]I was expecting this:1-123abc456abc789abc0002-456abc789abc0003-789abc0004-0005-6-7-8-9-But instead I got this:1-123abc456abc789abc0002-456abc789abc0003-789abc0004-0005-0006-0007-0008-0009-000I had expected middle to produce blank/empty results when it couldnot find the first occurrence of abc, but instead it returned theentire ts value.Has middle always worked like this, and I have simply never usedmiddle in this manner during 20 years of WebDNA programming?Or is this a glitch or bug?Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comWeb Database Systems and Linux Server Management---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list <talk@webdna.us>.To unsubscribe, E-mail to: <talk-leave@webdna.us>archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
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...