Re: [PHP] a regular expression problem - split text

2003-01-25 Thread George E. Papadakis
Sent: Monday, January 20, 2003 9:11 PM Subject: [PHP] a regular expression problem - split text > Hi all > I am sorry for the very simple question but I can't doing this. > > I have a text like this: > > $text=" this is January this is February > this is March this

RE: [PHP] a regular expression problem - split text

2003-01-20 Thread John W. Holmes
> I have a text like this: > > $text=" this is January this is February > this is March this is April "; > > OK.. i want to show e.g. "this is January" in my var $sub_text. > > How can i doing this using a regular expressions? This seems to work. preg_match_all("/([a-z ]+)/i",$text,$matche

[PHP] a regular expression problem - split text

2003-01-20 Thread Juan Pablo Aqueveque
Hi all I am sorry for the very simple question but I can't doing this. I have a text like this: $text=" this is January this is February this is March this is April "; OK.. i want to show e.g. "this is January" in my var $sub_text. How can i doing this using a regular expressions? ereg(