Discussion: Split
Afficher un message
Vieux 17/09/2007, 02h44   #3
Gregory Seidman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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


  Réponse avec citation
 
Page generated in 0,04383 seconds with 9 queries