Re: [WebDNA] Middle Question
This WebDNA talk-list message is from 2015
It keeps the original formatting.
numero = 112009
interpreted = N
texte = endbefore works from the end of the specified text, thus youshould expect this: content="Toronto Star copyeditor edits memo announcing theelimination of copyeditor jobs" />
Is there somebody who can shed some light on the proper use of> [middle]. It's not behaving as I would expect.> > I am attempting to extract open graph meta data from html after> grabbing it via [tcpconnect]> > so here is a sample of what I want to extract:> >
>
>
>
>
> > given this code:> [text]theOutPut=[tcpconnect host=boingboing.net
][!]> [/!][tcpsend skipheader=T]GET /2009/11/07/toronto-star-copyedi.html HTTP/1.0[!]> [/!][UnURL]%0D%0A[/Unurl]Host: boingboing.net [UnURL]%0D%0A%0D%0A[/UnURL][UnURL]%0D%0A[/Unurl][!]> [/!][/tcpsend][/tcpconnect][/text]> > [text]myProp=[middle startafter=property="og:title"&endbefore=" /][theOutPut][/middle][/text] > > myProp: [myProp]
> > I would expect MyPprop to return: content="Toronto Star copyeditor edits memo announcing the elimination of copyeditor jobs> > but, it is returning: myProp: content="Toronto Star copyeditor> edits memo announcing the elimination of copyeditor jobs" /> and> the rest of the page> > If I url everything, it doesn't work at all. Theoretically, middle> is built for exactly this purpose and I should be able to run a> series of Middles to extract specific og tags that I pre-describe.> > i'm using 6.2> > Thanks in advance!> > 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
Associated Messages, from the most recent to the oldest:
endbefore works from the end of the specified text, thus youshould expect this: content="Toronto Star copyeditor edits memo announcing theelimination of copyeditor jobs" /> Is there somebody who can shed some light on the proper use of> [middle]. It's not behaving as I would expect.> > I am attempting to extract open graph meta data from html after> grabbing it via [tcpconnect]> > so here is a sample of what I want to extract:> > > > > > > > given this code:> [text]theOutPut=[tcpconnect host=boingboing.net ][!]> [/!][tcpsend skipheader=T]GET /2009/11/07/toronto-star-copyedi.html HTTP/1.0[!]> [/!][unurl]%0D%0A[/Unurl]Host: boingboing.net [unurl]%0D%0A%0D%0A[/UnURL][unurl]%0D%0A[/Unurl][!]> [/!][/tcpsend][/tcpconnect][/text]> > [text]myProp=[middle startafter=property="og:title"&endbefore=" /][theOutPut][/middle][/text] > > myProp: [myProp]
> > I would expect MyPprop to return: content="Toronto Star copyeditor edits memo announcing the elimination of copyeditor jobs> > but, it is returning: myProp: content="Toronto Star copyeditor> edits memo announcing the elimination of copyeditor jobs" /> and> the rest of the page> > If I url everything, it doesn't work at all. Theoretically, middle> is built for exactly this purpose and I should be able to run a> series of Middles to extract specific og tags that I pre-describe.> > i'm using 6.2> > Thanks in advance!> > 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
Kenneth Grome
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:
[OT] iChat (2003)
[BULK] [WebDNA] Version 7 Config problem (2011)
On a related topic (2006)
Error: Too many nested [xxx] contexts (1997)
More on the email templates (1997)
Dates - Search and Sorting (1999)
No luck with taxes (1997)
Modifying databases manually (was Banner DNA) (1997)
Not really WebCat (1997)
WebCat2: Found Items syntax, etc. (1997)
[WebDNA] WebDNA Store (2017)
summ=T (2003)
Re[2]: ODBC to WebCat (2000)
WebCat2 several catalogs? (1997)
Euro WebDNA Conference (2004)
WebCatalog can't find database (1997)
Admin Section (2002)
Another question about credit cards (1997)
How to include weather (2000)
Next X hits (1996)