Re: collect string from string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23 April 2010 00:42, Ashley Sheridan <ash@xxxxxxxxxxxxxxxxxxxx> wrote:

>  On Fri, 2010-04-23 at 00:44 +0200, Michiel Sikma wrote:
>
-snip-

> Ah, ignore my last reply then! I used the g modifier, forgetting it wasn't
> the multi-line one in PHP!
>
>
>   Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
It's the global modifier in other implementations (JS, Perl, Java, etc), but
it doesn't quite work like the multiline modifier in those implementations
either. The effect of having it is like the difference between PHP's
preg_match() and preg_match_all(). That's why PHP actually doesn't have a g
modifier.

Michiel

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux