[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:

Conditional searching & displaying (1997) database paths/names, and a typo (1997) [WebDNA] Re:BCC and/or Character limit [sendmail] (2010) email servers (2000) [UPPERCASE] (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Post arguments problem mac? (1997) PCS Frames (1997) Associative lookup style? (1997) Client-side Image Maps and WebCat? (1998) Math Enhancement Request (2004) Initiating NewCart (1997) Another new bug found ... (2000) Using copyfolder (2001) Uh...can someone help me out with the b10? (1997) One more time (1997) Summary search -- speed (1997) What happened to my erbcatalogengine folder? (2001) [WebDNA] Talk archives (2010) Can WC remember people? (1998)