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
> 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
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(
3 matches
Mail list logo