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 = 2682 Thanks Brian for your helpful reply On 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 --=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 . Associated Messages, from the most recent to the oldest:

    
  1. Re: [BULK] [WebDNA] [BULK] [middle] behavior (webdna 2020)
  2. Re: [BULK] [WebDNA] [BULK] [middle] behavior (Stuart Tremain 2020)
2682 Thanks Brian for your helpful reply On 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 --=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 . 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:

[NT] ie 4.0 required (1997) Re(2): Foreign Chars ( יאצה and so on) (1998) WebCatalog NT beta 18 problem (1997) Sorting Numbers (1997) OT Weird Messenger Service message (2002) off topic - dna snipets (1997) What am I missing (1997) PR: WebCatalog Affiliates Program Announced -- Share the revenue for promoting WebCatalog (2000) whole word matching (2004) Globals Permissions (2003) WebCatalog [FoundItems] Problem - LONG - (1997) Session Number (1998) update on wn searching (1997) Re:Emailer problem....still (1997) [WebDNA] Gulf Coast WebDNA programmers (2010) [OT] XServe networking PITA (2004) Email Formatting and Encryption (1998) Interfacing WC with mail server (1998) Order not created error (1997) WILDWEBCAT encrypt.tpl submission (1998)