[WebDNA] Small Parsing Problem

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 101840
interpreted = N
texte = 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 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)
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 David Bastedo

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:

[WebDNA] Image resizing on the fly (2012) webcat- multiple selection in input field (1997) Formating found categories (1997) Frames and WebCat (1997) [WebDNA] feature suggestion - long response (2011) Founditems context returning only 1 item (1997) I've been thinking (2002) A little syntax help (1997) Pgp&emailer (1997) WebCatalog can't find database (1997) Why are some admin pages not encrypted? (2000) [Webcat 2]Next (1997) Associative lookup style? + bit more (1997) Configuring E-mail (1997) Virtual Domains (1998) Questions (1998) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Database (2000) View Source from cache (1997) redirect with frames (1997)