Re: Split
On Mon, Sep 17, 2007 at 09:03:52AM +0900, Lee Jarvis wrote:
> Ok guys im looking for something sexy to split this HTML (This HAS to be
> done using split, nothing else)
>
> <b>hi</b>, <b>there</b>, <b>fred</b>,
>
> I would like to split them values into an array, Is there any chance
> this can be done? Because im beginning to think there isn't
>
> Oh, i want all the values inside the <b></b> tags, btw
str.split(/<b>|<\/b>,|<\/b>, <b>/)
> Tia
--Greg
|