|
Posted by Vince Morgan on 05/21/07 14:24
"gosha bine" <stereofrog@gmail.com> wrote in message
news:4651abb0$0$2893$6e1ede2f@read.cnntp.org...
> On 21.05.2007 15:50 Vince Morgan wrote:
> > My problem has a simple solution. However I just can't find it. I
cannot
> > remember which 'split()' type function allows you to keep the delimiter
in
> > place within the final array.
> > I've tried searching the documentation without success.
> > TIA
> > Vince
> >
> >
>
> preg_split with PREG_SPLIT_DELIM_CAPTURE or
> preg_match('/[^,;]+|[,;]/'...) where ',;' are delimiters
>
> --
> gosha bine
>
> extended php parser ~ http://code.google.com/p/pihipi
> blok ~ http://www.tagarga.com/blok
Yep, that's it. Thanks Gosha.
Regards,
Vince
Navigation:
[Reply to this message]
|