Re: [BULK] Re: [WebDNA] [BULK] [middle] behavior

This WebDNA talk-list message is from

2020


It keeps the original formatting.
numero = 115052
interpreted = N
texte = 2681 Your code is actually returning the whole string, but the angle brackets = are being hidden by the HTML processor. You can see the full string = with: [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: >=20 > sorry the middle code is: > [middle startafter=3D&endbefore=3D][reply][/middle] >=20 > On 2/28/20 12:07 PM, talk@webdna.us wrote: >> Hi all, >>=20 >> I am using [middle] to parse some XML. >>=20 >> My Webdna is as follows: >>=20 >> = [text]reply=3D23.81.80.158391204864= 39120563123.81.80.0/23, = 23.81.82.0/24US"UNITED = STATES"37.751-97.8225000-05:00<= /TIMEZONE>LEASEWEB USA = INC.LEASEWEB.COMT1= TODOTODO5391205022= 23.81.80.158.USA-IDC.COMUSA-IDC.COM[/text] >>=20 >> Neither or exists. >>=20 >> Should not the result of [middle] be nothing/blank? >> [middle startafter=3D&endbefore=3D[][reply][/middle] >>=20 >> I am getting: >> 23.81.80.15839120486439120563123.81.80.0/23, 23.81.82.0/24USUNITED = STATES37.751-97.8225000-05:00LEASEWEB USA = INC.LEASEWEB.COMT1TODOTODO539120502223.81.80.158.USA-IDC.COMUSA-IDC.COM >>=20 >> Thanks in advance >>=20 >>=20 >>=20 >=20 > --=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 . Associated Messages, from the most recent to the oldest:

    
2681 Your code is actually returning the whole string, but the angle brackets = are being hidden by the HTML processor. You can see the full string = with: [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: >=20 > sorry the middle code is: > [middle startafter=3D&endbefore=3D][reply][/middle] >=20 > On 2/28/20 12:07 PM, talk@webdna.us wrote: >> Hi all, >>=20 >> I am using [middle] to parse some XML. >>=20 >> My Webdna is as follows: >>=20 >> = [text]reply=3D23.81.80.158391204864= 39120563123.81.80.0/23, = 23.81.82.0/24US"UNITED = STATES"37.751-97.8225000-05:00<= /TIMEZONE>LEASEWEB USA = INC.LEASEWEB.COMT1= TODOTODO5391205022= 23.81.80.158.USA-IDC.COMUSA-IDC.COM[/text] >>=20 >> Neither or exists. >>=20 >> Should not the result of [middle] be nothing/blank? >> [middle startafter=3D&endbefore=3D[][reply][/middle] >>=20 >> I am getting: >> 23.81.80.15839120486439120563123.81.80.0/23, 23.81.82.0/24USUNITED = STATES37.751-97.8225000-05:00LEASEWEB USA = INC.LEASEWEB.COMT1TODOTODO539120502223.81.80.158.USA-IDC.COMUSA-IDC.COM >>=20 >> Thanks in advance >>=20 >>=20 >>=20 >=20 > --=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 . Brian Fries

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:

Error Lob.db records error message not name (1997) [ConvertChars] problem (1997) Re:2nd WebCatalog2 Feature Request (1996) Problems with ^ could be solved with [REPLACE CHARACTERS] (1997) Solve the Problem, get the code! (2001) WebMerchant 1.6 and SHTML (1997) Calendar (1997) WebCat2 - [SendNews] (1997) WebCatalog and directory indexing (1998) WebCat2.0 [format thousands .0f] no go (1997) SSL, WebSTAR, WebCatalog (1998) Shopping Cart - prices? (1997) calculating ShipCost depending on weight (1997) [SHOWIF]s and empty arguments (1997) For those of you not on the WebCatalog Beta... (1997) Finding max value for a field (1997) [convertchars] problem... (2000) Help formatting search results w/ table (1997) WebCat2 several catalogs? (1997) Display [price] in banner ad (1998)