Re: [WebDNA] Middle Question

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112031
interpreted = N
texte = --001a11c384c8bdf86f050d5107eb Content-Type: text/plain; charset=UTF-8 David, Hi - you won't be able to achieve what you are trying to do with [middle]. You might be able to hack something together using [grep] or [listwords]. Though Stackoverflow is full of articles outlining why regex should not be used to parse HTML. ( http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 ) Your example shows why a proper HTML parser within WebDNA would be really useful. For example if you paste your code into this page: http://try.jsoup.org and type "meta" into the CSS Query box you'll see how a HTML parser does the job. - Tom ============================================== Digital Revolutionaries 1st Floor, Castleriver House 14-15 Parliament Street Temple Bar,Dublin 2 Ireland ---------------------------------------------- [t]: + 353 1 4403907 [e]: [w]: ============================================== On 23 January 2015 at 00:11, David Bastedo wrote: > To your point, I never switched out your test variable properly > To my point, I hate when you are right. > I get the same results. > > However, as opposed to blaming me for not understanding how the friggin > thing works, the docs aren't very clear and after seeing your example I now > understand "backwards" for the reality that it is. > > There is no hope in hell of doing what I want with middle. > > Your first example is not as good as your second example to illustrate the > concept. Thank you for taking the time with the second example, it > illustrate backwards much more effectively. > > d. > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --001a11c384c8bdf86f050d5107eb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
David,

Hi - you won't be able to ac= hieve what you are trying to do with [middle].=C2=A0 You might be able to h= ack something together using [grep] or [listwords].=C2=A0 Though Stackoverf= low is full of articles outlining why regex should not be used to parse HTM= L. =C2=A0(http://stackov= erflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contai= ned-tags/1732454#1732454)

Your example shows w= hy a proper HTML parser within WebDNA would be really useful.=C2=A0 For exa= mple if you paste your code into this page:

=C2=A0= =C2=A0=C2=A0http://try.jsoup.org

and type "meta" into the CSS Query box you&#= 39;ll see how a HTML parser does the job.

- Tom






=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D
Digital Revolutionaries
1st Floor, Castleriver = House
14-15 Parliament Street
Temple Bar,Dublin 2
Ireland
-----= -----------------------------------------
[t]: + 353 1 4403907
[e]: &= lt;mailto:tom@r= evolutionaries.ie>
[w]: <http://www.revolutionaries.ie/>
=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

On 23 January 2015 at 00:11, David Bastedo <= span dir=3D"ltr"><david@10plus1.com> wrote:
=
To your point, I never switched out yo= ur test variable properly
To my point, I hate when you are right.
I get the same results.

However, as opposed to blaming me = for not understanding how the friggin thing works, the docs aren't very= clear and after seeing your example I now understand "backwards"= for the reality that it is.

There is no hope in hell of doing what = I want with middle.

Your first example is not as good as your = second example to illustrate the concept. Thank you for taking the time wit= h the second example, it illustrate backwards much more effectively.
d.


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--001a11c384c8bdf86f050d5107eb-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  2. Re: [WebDNA] Middle Question (christophe.billiottet@webdna.us 2015)
  3. Re: [WebDNA] Middle Question (David Bastedo 2015)
  4. Re: [WebDNA] Middle Question (Tom Duke 2015)
  5. Re: [WebDNA] Middle Question (christophe.billiottet@webdna.us 2015)
  6. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  7. Re: [WebDNA] Middle Question (David Bastedo 2015)
  8. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  9. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  10. Re: [WebDNA] Middle Question (David Bastedo 2015)
  11. Re: [WebDNA] Middle Question (Terry Wilson 2015)
  12. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  13. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  14. Re: [WebDNA] Middle Question (David Bastedo 2015)
  15. Re: [WebDNA] Middle Question (David Bastedo 2015)
  16. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  17. Re: [WebDNA] Middle Question (Terry Wilson 2015)
  18. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  19. Re: [WebDNA] Middle Question (Chris 2015)
  20. Re: [WebDNA] Middle Question (Chris 2015)
  21. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  22. Re: [WebDNA] Middle Question (Steve Craig 2015)
  23. Re: [WebDNA] Middle Question (David Bastedo 2015)
  24. Re: [WebDNA] Middle Question (Kenneth Grome 2015)
  25. [WebDNA] Middle Question (David Bastedo 2015)
--001a11c384c8bdf86f050d5107eb Content-Type: text/plain; charset=UTF-8 David, Hi - you won't be able to achieve what you are trying to do with [middle]. You might be able to hack something together using [grep] or [listwords]. Though Stackoverflow is full of articles outlining why regex should not be used to parse HTML. ( http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 ) Your example shows why a proper HTML parser within WebDNA would be really useful. For example if you paste your code into this page: http://try.jsoup.org and type "meta" into the CSS Query box you'll see how a HTML parser does the job. - Tom ============================================== Digital Revolutionaries 1st Floor, Castleriver House 14-15 Parliament Street Temple Bar,Dublin 2 Ireland ---------------------------------------------- [t]: + 353 1 4403907 [e]: [w]: ============================================== On 23 January 2015 at 00:11, David Bastedo wrote: > To your point, I never switched out your test variable properly > To my point, I hate when you are right. > I get the same results. > > However, as opposed to blaming me for not understanding how the friggin > thing works, the docs aren't very clear and after seeing your example I now > understand "backwards" for the reality that it is. > > There is no hope in hell of doing what I want with middle. > > Your first example is not as good as your second example to illustrate the > concept. Thank you for taking the time with the second example, it > illustrate backwards much more effectively. > > d. > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --001a11c384c8bdf86f050d5107eb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
David,

Hi - you won't be able to ac= hieve what you are trying to do with [middle].=C2=A0 You might be able to h= ack something together using [grep] or [listwords].=C2=A0 Though Stackoverf= low is full of articles outlining why regex should not be used to parse HTM= L. =C2=A0(http://stackov= erflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contai= ned-tags/1732454#1732454)

Your example shows w= hy a proper HTML parser within WebDNA would be really useful.=C2=A0 For exa= mple if you paste your code into this page:

=C2=A0= =C2=A0=C2=A0http://try.jsoup.org

and type "meta" into the CSS Query box you&#= 39;ll see how a HTML parser does the job.

- Tom






=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D
Digital Revolutionaries
1st Floor, Castleriver = House
14-15 Parliament Street
Temple Bar,Dublin 2
Ireland
-----= -----------------------------------------
[t]: + 353 1 4403907
[e]: &= lt;mailto:tom@r= evolutionaries.ie>
[w]: <http://www.revolutionaries.ie/>
=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

On 23 January 2015 at 00:11, David Bastedo <= span dir=3D"ltr"><david@10plus1.com> wrote:
=
To your point, I never switched out yo= ur test variable properly
To my point, I hate when you are right.
I get the same results.

However, as opposed to blaming me = for not understanding how the friggin thing works, the docs aren't very= clear and after seeing your example I now understand "backwards"= for the reality that it is.

There is no hope in hell of doing what = I want with middle.

Your first example is not as good as your = second example to illustrate the concept. Thank you for taking the time wit= h the second example, it illustrate backwards much more effectively.
d.


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--001a11c384c8bdf86f050d5107eb-- Tom Duke

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:

[QuantityPrice] Not working in WebCatNT 2.0.1??? (1997) Encrypting Credit Card Numbers (2004) Different Email recipients? (1998) Re:ListFields and [name] (1997) [WebDNA] maybe silly suggestion? [founditems] (2015) WC2b12: Yes, Formulas.db is for real (1997) SpiderBotLock! (2003) 2.1b3 --> way slow (1997) emailer (1997) WebCat2b13 Command Reference Doc error (1997) send mail problem? (1997) Wrapping text (1998) OT : Virus (2000) [WebDNA] TCPconnect and Bitcoin rate (2019) Getting Emailer to send mail (1997) Too many webcat comments. [WAS- Large founditems loops] (2000) WebCatalog [FoundItems] Problem - AGAIN - (1997) Retrieve deleted files (2001) about this server and links to who (1997) The beginning (1997)