You are here: Re: Creating a vCal-interpreter « PHP Programming Language « IT news, forums, messages
Re: Creating a vCal-interpreter

Posted by daGnutt on 07/06/07 07:28

I would then need to explode it at "\n" so that I would change the
rows as well... And afaik (haven't tried yet) I don't think that
explode would like regexps for delimiter.

But I would be out sailing on the black sea here...

On 5 Juli, 22:07, "Richard" <root@localhost> wrote:
> Why not "explode" at the ":" ?
> The date part will be the first chars in the second item of the array.
> Or is that too simple?
>
> If ($suggestion=="too_simple") then {
> give("more_details");
>
> }
>
> R.
>
> ;)
>
> "daGnutt" <gnutt.halvords...@gmail.com> wrote in message
>
> news:1183647815.934355.148770@o61g2000hsh.googlegroups.com...
>
> >I have tought about that, however the row that I want to extract this
> > data from is among alot of other rows. Therefore I'm thinking in the
> > rows of this
>
> > Perhaps writing up a reg-exp searchstuff (my head is tired right now)
> > that searches for a row ex
>
> > (not sure that my regexp are right for five cents, so I'm mixing
> > regexp with pseudo-code)
> > ^DTSTART;[possibly "TZID=Europe/Stockholm" OR "TZVALUE=DATE"][data-to-
> > be-extracted]$
>
> > can anyone help me?
>
> > On 5 Juli, 16:24, "Richard" <root@localhost> wrote:
> >> And?
> >> Did you find the answer already? ;-)
>
> >> Else try "explode".
>
> >> R.
>
> >> "daGnutt" <gnutt.halvords...@gmail.com> wrote in message
>
> >>news:1183636630.140438.104700@57g2000hsv.googlegroups.com...
>
> >> > New problem (I'm sure this one is really easy)
> >> > In a string i have many rows, I want to extract some data from one of
> >> > those rows
>
> >> > Example:
> >> >>From the row "DTSTART;TZID=Europe/Stockholm:20070603T190000"
> >> > I wish to extract the value "20070603T190000" into an variable
>
> >> > Example 2
> >> >>From the row "DTSTART;VALUE=DATE:20070616"
> >> > I wish to extract the value "20070616"
>
> >> > These two examples are the only two variants of which I wish to
> >> > extract the information (at this point)
>
> >> > Can anyone give me a quick fix?
>
> >> > On 5 Juli, 10:56, daGnutt <gnutt.halvords...@gmail.com> wrote:
> >> >> It never fails!
> >> >> Just after posting the message I found a way to do this!
>
> >> >> On 5 Juli, 10:51, daGnutt <gnutt.halvords...@gmail.com> wrote:
>
> >> >> > I'm currently trying to write a vCal-interpreter, so that I can use
> >> >> > a
> >> >> > google-calendar to show upcoming, and recently performed events.
>
> >> >> > The issue that I have now, is that I wish to split up the vCal-info
> >> >> > into blocks with data.
> >> >> > What I'm after right now is a way to fetch the row-nums from a
> >> >> > string
> >> >> > where the rows are
>
> >> >> > First Occurence of
> >> >> > BEGIN:VEVENT
> >> >> > and then the first occurence of
> >> >> > END:VEVENT
>
> >> >> > (So I can divide it into blocks)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация