Re: collect string from string

From: Date: Thu, 22 Apr 2010 22:56:50 +0000
Subject: Re: collect string from string
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-304452@lists.php.net to get a copy of this message
On 23 April 2010 00:42, Ashley Sheridan <ash@ashleysheridan.co.uk> 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

« previous php.general (#304452) next »