Re: [PHP] Re: Regular Expression to get the whole Comma Separated String in Array Key

2010-07-01 Thread Richard Quadling
On 1 July 2010 06:47, Gaurav Kumar wrote: > Hey Richard, > > Thanks!!! You have resolved my problem.. > > GK > > > On Wed, Jun 30, 2010 at 7:42 PM, Gaurav Kumar > wrote: > >> Hi All, >> >> Need help in resolving the below problem- >> >> >> I would like to get the whole comma separated string into

[PHP] Re: Regular Expression to get the whole Comma Separated String in Array Key

2010-06-30 Thread Gaurav Kumar
Hey Richard, Thanks!!! You have resolved my problem.. GK On Wed, Jun 30, 2010 at 7:42 PM, Gaurav Kumar wrote: > Hi All, > > Need help in resolving the below problem- > > > I would like to get the whole comma separated string into an array value- > > 1. $postText = "chapters 5, 6, 7, 8"; > OR >

[PHP] Re: Regular Expression to get the whole Comma Separated String in Array Key

2010-06-30 Thread Jo�o C�ndido de Souza Neto
Not tested, but I think it should work: preg_match_all('/(\d+),/', $postText, $matches); -- João Cândido de Souza Neto "Gaurav Kumar" escreveu na mensagem news:aanlktikdb_ismnkpomicxzsfzixg4dedznunrcimj...@mail.gmail.com... > Hi All, > > Need help in resolving the below problem- > > > I wou