Re: [WebDNA] Small Parsing Problem

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 101865
interpreted = N
texte = Hey, as it turns out, I needed this. Works perfectly! D. On Wed, Jan 28, 2009 at 6:18 PM, Govinda wrote: > I put an extra space char in there. SHould be: > --- > [text > show=F]Need2ParseThis=tag:youtube,2008:video:24Ryj1ywosw[/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]
> --- > -G > > On 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/ > > --------------------------------------------------------- > 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 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)
Hey, as it turns out, I needed this. Works perfectly! D. On Wed, Jan 28, 2009 at 6:18 PM, Govinda wrote: > I put an extra space char in there. SHould be: > --- > [text > show=F]Need2ParseThis=tag:youtube,2008:video:24Ryj1ywosw[/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]
> --- > -G > > On 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/ > > --------------------------------------------------------- > 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 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:

RE: Personal Web Server combined with Webcatalog 2.1 (1998) Re:Dumb Question about Docs (1997) Signal Raised error (1997) Speaking of... (1999) Search with Special Chars (1997) Setting up WebCatalog with Retail Pro data (1996) WebCat2 - storing unformatted date data? (1997) sort on categories (DBEdit) (2001) [SearchString] problem with [search] context (1997) New Command prefs ... (1997) Sendmail strangie (2002) [WebDNA] WebDNA Health Monitor (2014) Cobalt and WebCatalog, do they work together? (2000) b12 cannot limit records returned and more. (1997) Renaming textA (1998) Is QuidProQuo dead? (1998) 2nd WebCatalog2 Feature Request (1996) Sorting by date (1997) Archives Suppor [was:Hyperlink in email] (2002) PIXO support (1997)