|
Posted by frizzle on 06/23/06 13:08
frizzle wrote:
> Andy Hassall wrote:
> > On 22 Jun 2006 13:21:50 -0700, "Chung Leong" <chernyshevsky@hotmail.com> wrote:
> >
> > >Andy Hassall wrote:
> > >>
> > >> There are undoubtably faster, more concise and cleverer ways of doing this.
> > >
> > >Which would involve, of course, regular expression :-)
> > >
> > >preg_match_all('/(?P<name>[^,]+),(?P<url>[^,]+)/', $list, $m,
> > >PREG_SET_ORDER);
> >
> > Ah ha, was trying to work out how to get it with PCRE, knew it was possible
> > :-)
> >
> > --
> > Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
> > http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
>
> I'm sorry, but i don't completely understand the logics in the
> Disny-function, and i don't completely understand the logics in the
> pattern of the preg_match_all part.
>
> Could someone please explain a little bit more ?
>
> Frizzle.
Especially the "?P" - part in the pattern i cannot figure out ...
Frizzle.
Navigation:
[Reply to this message]
|