Re: [BULK] Re: [WebDNA] [BULK] [middle] behavior
This WebDNA talk-list message is from 2020
It keeps the original formatting.
numero = 115053
interpreted = N
texte = 2682Thanks Brian for your helpful replyOn 2/28/20 1:30 PM, talk@webdna.us wrote:> Your code is actually returning the whole string, but the angle bracket=s are being hidden by the HTML processor. You can see the full string wit=h:>> [grep search=3D<&replace=3D[url]<[/url]][middle startafter=3D
&endbefore=3D][reply][/middle][/grep]>>> The way MIDDLE works is that if the =E2=80=9Cstartafter=E2=80=9D string= is not found, it starts at the beginning of the string, and if the =E2=80==9Cendbefore" string is not found it goes to the end of the string.>> So, if items are optional in the reply, one option is to use something =like:>> [showif [url][reply][/url]^[url]
[/url]][middle startafter=3D&endbefore=3D][reply][/middle][/showif]>> - Brian Fries>>> On Feb 28, 2020, at 9:09 AM, talk@webdna.us wrote:>>>> sorry the middle code is:>> [middle startafter=3D
&endbefore=3D][reply][/middle]>>>> On 2/28/20 12:07 PM, talk@webdna.us wrote:>>> Hi all,>>>>>> I am using [middle] to parse some XML.>>>>>> My Webdna is as follows:>>>>>> [text]reply=3D
23.81.80.15839120486439120563123.81.80.0/23, 23.81.82.0/24US"UNITED STATES"37.751-97.8225000-05:00LEASEWEB= USA INC.LEASEWEB.COMT1TODOTODO5391205022=23.81.80.158.USA-IDC.COMUSA-IDC.=COM[/text]>>>>>> Neither or exists.>>>>>> Should not the result of [middle] be nothing/blank?>>> [middle startafter=3D&endbefore=3D[][reply][/middle]>>>>>> I am getting:>>> 23.81.80.15839120486439120563123.81.80.0/23, 23.81.82.0/24USUNITED ST=ATES37.751-97.8225000-05:00LEASEWEB USA INC.LEASEWEB.COMT1TODOTODO5391205=02223.81.80.158.USA-IDC.COMUSA-IDC.COM>>>>>> Thanks in advance>>>>>>>>>>> --=20>> Steve Raslevich>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list talk@webdna.us>> To unsubscribe, E-mail to: talk-leave@webdna.us>> archives: http://www.webdna.us/page.dna?numero=3D55>> Bug Reporting: support@webdna.us> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list talk@webdna.us> To unsubscribe, E-mail to: talk-leave@webdna.us> archives: http://www.webdna.us/page.dna?numero=3D55> Bug Reporting: support@webdna.us--=20Steve Raslevich---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us.
Associated Messages, from the most recent to the oldest:
2682Thanks Brian for your helpful replyOn 2/28/20 1:30 PM, talk@webdna.us wrote:> Your code is actually returning the whole string, but the angle bracket=s are being hidden by the HTML processor. You can see the full string wit=h:>> [grep search=3D<&replace=3D[url]<[/url]][middle startafter=3D&endbefore=3D][reply][/middle][/grep]>>> The way MIDDLE works is that if the =E2=80=9Cstartafter=E2=80=9D string= is not found, it starts at the beginning of the string, and if the =E2=80==9Cendbefore" string is not found it goes to the end of the string.>> So, if items are optional in the reply, one option is to use something =like:>> [showif [url][reply][/url]^[url][/url]][middle startafter=3D&endbefore=3D][reply][/middle][/showif]>> - Brian Fries>>> On Feb 28, 2020, at 9:09 AM, talk@webdna.us wrote:>>>> sorry the middle code is:>> [middle startafter=3D&endbefore=3D][reply][/middle]>>>> On 2/28/20 12:07 PM, talk@webdna.us wrote:>>> Hi all,>>>>>> I am using [middle] to parse some XML.>>>>>> My Webdna is as follows:>>>>>> [text]reply=3D23.81.80.15839120486439120563123.81.80.0/23, 23.81.82.0/24US"UNITED STATES"37.751-97.8225000-05:00LEASEWEB= USA INC.LEASEWEB.COMT1TODOTODO5391205022=23.81.80.158.USA-IDC.COMUSA-IDC.=COM[/text]>>>>>> Neither or exists.>>>>>> Should not the result of [middle] be nothing/blank?>>> [middle startafter=3D&endbefore=3D[][reply][/middle]>>>>>> I am getting:>>> 23.81.80.15839120486439120563123.81.80.0/23, 23.81.82.0/24USUNITED ST=ATES37.751-97.8225000-05:00LEASEWEB USA INC.LEASEWEB.COMT1TODOTODO5391205=02223.81.80.158.USA-IDC.COMUSA-IDC.COM>>>>>> Thanks in advance>>>>>>>>>>> --=20>> Steve Raslevich>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list talk@webdna.us>> To unsubscribe, E-mail to: talk-leave@webdna.us>> archives: http://www.webdna.us/page.dna?numero=3D55>> Bug Reporting: support@webdna.us> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list talk@webdna.us> To unsubscribe, E-mail to: talk-leave@webdna.us> archives: http://www.webdna.us/page.dna?numero=3D55> Bug Reporting: support@webdna.us--=20Steve Raslevich---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us.
webdna
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:
RE: includes and cart numbers (1997)
Document Contains No Data! (1997)
payflowpro problem #3 (2003)
Credit card types (1997)
Post Test (2008)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
Testing (2003)
Webcat Security (1998)
Another question (1997)
Getting Emailer to send mail (1997)
Multiple prices (1997)
SiteGuard Admin Feature ? (1997)
japanese characters (1997)
Max Record length restated as maybe bug (1997)
Webcatalog Future?!? (2000)
minimalist shopping cart. (1997)
WebCatalog for guestbook ? (1997)
PCS Customer submissions ? (1997)
Error:Too many nested [xxx] contexts (1997)
[WriteFile] problems (1997)