Re: [WebDNA] Small Parsing Problem
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 101843
interpreted = N
texte = David, try this and tell us if any more issues:---[text show=F]Need2ParseThis=
tag:youtube,2008:video:24Ryj1ywosw id>[/text][text show=F]TheTag=[Middle StartAfter=tag:&EndBefore=:video] [Need2ParseThis][/Middle][/text][text show=F]TheVideo=[Middle StartAfter= video:&EndBefore=] [Need2ParseThis][/Middle][/text]TheTag=[TheTag]
TheVideo =[TheVideo]
----GOn Jan 28, 2009, at 3:47 PM, David Bastedo wrote:> middle also confuses me . . . :)>> Thanks in advance!>> D.>> On Wed, Jan 28, 2009 at 5:31 PM, Govinda >
wrote:>> or if you are in a rush, why not use [middle] instead?>> if you need more help writing such a [middle] ask again and I'll do >> it.>> -Govinda>>>> On Jan 28, 2009, at 3:25 PM, David Bastedo wrote:>>>>> Hi, I am trying to get a youTube VideoID value from the content of >>> the ID>>> tag.>>>>>> Example:>>> tag:youtube,2008:video:24Ryj1ywosw>>>>>> so ineffect, I need to parse the following>>> tag:youtube,2008:video:24Ryj1ywosw>>>>>>>>> From YouTube: The tag specifies a URN that uniquely and>>> permanently identifies a feed or video entry.>>>>>> so I believe the solution is a grep to get the content from each of>>> the tag and video elements, as the tag and video labels will not>>> change, but the content will have a varying length.>>>>>> So to get the videoID, I would grep from the colon after video to >>> the>>> end and take everything inbetween . . . of course, that's where it >>> all>>> falls apart as I am really just starting to find that I need to lear>>> grep and regular expressions. . .>>>>>> thanks for any help.>>>>>> D.>>>>>>>>>>>> -->>> David Bastedo>>> Ten Plus One Communications Inc.>>> http://www.10plus1.com>>> 416.603.2223 ext.1>>> --------------------------------------------------------->>> 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>>> old archives: http://dev.webdna.us/TalkListArchive/>>>> --------------------------------------------------------->> 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>> old archives: http://dev.webdna.us/TalkListArchive/>>>>>>>> -- > David Bastedo> Ten Plus One Communications Inc.> http://www.10plus1.com> 416.603.2223 ext.1> ---------------------------------------------------------> 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> old archives: http://dev.webdna.us/TalkListArchive/
Associated Messages, from the most recent to the oldest:
David, try this and tell us if any more issues:---[text show=F]Need2ParseThis=tag:youtube,2008:video:24Ryj1ywosw id>[/text][text show=F]TheTag=[Middle StartAfter=tag:&EndBefore=:video] [Need2ParseThis][/Middle][/text][text show=F]TheVideo=[Middle StartAfter= video:&EndBefore=] [Need2ParseThis][/Middle][/text]TheTag=[TheTag]
TheVideo =[TheVideo]
----GOn Jan 28, 2009, at 3:47 PM, David Bastedo wrote:> middle also confuses me . . . :)>> Thanks in advance!>> D.>> On Wed, Jan 28, 2009 at 5:31 PM, Govinda > wrote:>> or if you are in a rush, why not use [middle] instead?>> if you need more help writing such a [middle] ask again and I'll do >> it.>> -Govinda>>>> On Jan 28, 2009, at 3:25 PM, David Bastedo wrote:>>>>> Hi, I am trying to get a youTube VideoID value from the content of >>> the ID>>> tag.>>>>>> Example:>>> tag:youtube,2008:video:24Ryj1ywosw>>>>>> so ineffect, I need to parse the following>>> tag:youtube,2008:video:24Ryj1ywosw>>>>>>>>> From YouTube: The tag specifies a URN that uniquely and>>> permanently identifies a feed or video entry.>>>>>> so I believe the solution is a grep to get the content from each of>>> the tag and video elements, as the tag and video labels will not>>> change, but the content will have a varying length.>>>>>> So to get the videoID, I would grep from the colon after video to >>> the>>> end and take everything inbetween . . . of course, that's where it >>> all>>> falls apart as I am really just starting to find that I need to lear>>> grep and regular expressions. . .>>>>>> thanks for any help.>>>>>> D.>>>>>>>>>>>> -->>> David Bastedo>>> Ten Plus One Communications Inc.>>> http://www.10plus1.com>>> 416.603.2223 ext.1>>> --------------------------------------------------------->>> 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>>> old archives: http://dev.webdna.us/TalkListArchive/>>>> --------------------------------------------------------->> 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>> old archives: http://dev.webdna.us/TalkListArchive/>>>>>>>> -- > David Bastedo> Ten Plus One Communications Inc.> http://www.10plus1.com> 416.603.2223 ext.1> ---------------------------------------------------------> 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> old archives: http://dev.webdna.us/TalkListArchive/
Govinda
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:
Help! WebCat2 bug (1997)
RE: File Uploads (1998)
Environment Variables (2000)
Errata: WCS Newbie question (1997)
Forcing Paragraph Breaks on Results (1998)
FYI: virus alert (1996)
Bulletin Board needed (2007)
searching multiple databases in single search (1997)
[append] problem (1997)
problems with 2 tags (1997)
Sorting Numbers (1997)
showif and cart (1997)
Multiple serial numbers (1997)
SSI and WebCatalog 2 or 3 Integration (1999)
Shopping problems with 2.1b3 acgi (1997)
Date problems (1997)
Help! WebCat2 bug (1997)
Using Plug-In while running 1.6.1 (1997)
Image maps/Webcat (1997)
[decrypt seed=seed][getchars (1999)