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=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=20 your desired id code would be the last [word] in the loop [listwords words=3D[middle=20 startafter=3D&endbefore=3D][stringToParse][/middle]&delimiters=3D= :][word][/listwords] -Dan On 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:

    
  1. Re: [WebDNA] Small Parsing Problem (David Bastedo 2009)
  2. Re: [WebDNA] Small Parsing Problem (Govinda 2009)
  3. Re: [WebDNA] Small Parsing Problem (David Bastedo 2009)
  4. Re: [WebDNA] Small Parsing Problem ("Dan Strong" 2009)
  5. Re: [WebDNA] Small Parsing Problem (Govinda 2009)
  6. Re: [WebDNA] Small Parsing Problem (David Bastedo 2009)
  7. Re: [WebDNA] Small Parsing Problem (Govinda 2009)
  8. [WebDNA] Small Parsing Problem (David Bastedo 2009)
[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=20 your desired id code would be the last [word] in the loop [listwords words=3D[middle=20 startafter=3D&endbefore=3D][stringToParse][/middle]&delimiters=3D= :][word][/listwords] -Dan On 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:

problems with WebCat-Plugin () [HIDEIF] inside [FOUNDITEM] (1997) Date subtraction (2002) Drop Down Menus (2002) restart needed???? (1997) Netscape (1997) emailer and other smtp (1998) Online reference (1997) Zip Codes (2003) Security Question (1997) customizing the color of user's pages (1997) Prices coming up 0.00 (2001) ShowNext Command (1997) [Sum] function? (1997) authenticating a second user (1997) unable to launch acgi in WebCat (1997) PROBLEMS WITH PROTECT TAG (2004) frames & carts (1997) WebCat2 - [format thousands] (1997) Running 2 two WebCatalog.acgi's (1996)