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