Re: [WebDNA] Small Parsing Problem
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 101844
interpreted = N
texte = [text]stringToParse=3D
tag:youtube,2008:video:24Ryj1ywosw[/text][middle startafter=3Dvideo:&endbefore=3D][stringToParse][/middle]would definitely work, as would a [middle]/[listwords] hybrid, using colo=n as a delimiter since=20your desired id code would be the last [word] in the loop[listwords words=3D[middle=20startafter=3D
&endbefore=3D][stringToParse][/middle]&delimiters=3D=:][word][/listwords]-DanOn Wed, 28 Jan 2009 17:47:38 -0500 David Bastedo
wrote:> middle also confuses me . . . :)>=20> Thanks in advance!>=20> D.>=20> 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 th=e 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 al=l>>> 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/>>>>>=20>=20>=20> --=20> 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:
[text]stringToParse=3Dtag:youtube,2008:video:24Ryj1ywosw[/text][middle startafter=3Dvideo:&endbefore=3D][stringToParse][/middle]would definitely work, as would a [middle]/[listwords] hybrid, using colo=n as a delimiter since=20your desired id code would be the last [word] in the loop[listwords words=3D[middle=20startafter=3D&endbefore=3D][stringToParse][/middle]&delimiters=3D=:][word][/listwords]-DanOn Wed, 28 Jan 2009 17:47:38 -0500 David Bastedo wrote:> middle also confuses me . . . :)>=20> Thanks in advance!>=20> D.>=20> 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 th=e 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 al=l>>> 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/>>>>>=20>=20>=20> --=20> 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/
"Dan Strong"
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:
Viewing Changes (1998)
Many are called but only 6 make it to founditems. (2001)
FCKeditor (2008)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
text conversions (1999)
OK, here goes... (1997)
Date Problems (2000)
Re[2]: when is failing to [URL]ize values in a comparison ri (1999)
Date search - yes or no (1997)
Another question (1997)
WebCatalog Growth (2000)
Finding max value for a field (1997)
[OT] Web Site Mapping Software (2000)
Ok here is a question? (1997)
Showif Context combined with Search (1997)
Images in the page without using separate image files ... (2003)
[OT] Deploying XRAID (2003)
Hiding the URL(was Cart ID Duplication) (2001)
[OT] HTML TAB CODE (2002)
Searchable archives gone again??? (2000)