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:

SMSI, please fix the StandardConversions.db (2005) Form/HTML Help (2000) Preferences for Emailer Email Header (2003) WebDNA-Talk Digest mode broken (1997) Grouping Look-ups and Searching (2001) New public beta available (1997) eCommerce Idea Patented? (2002) Calendar (1997) WebCat & Backoffice Solution? (2000) Is there a max number of fields? (1998) Adding freight and percentages (2000) Need relative path explanation (1997) Emailer setup (1997) Supressing Error Messages (1998) HELP WITH DATES (1997) Multiple security dbs (1997) GD Spam (2003) NewCart+Search with one click ? (1997) [WebDNA] CSS Advice (2008) suffix mapping for NT? (1997)