Re: [PHP] Out of the box algorithms

2002-02-06 Thread Wolfram Kriesing
> users: username "username with spaces" anotherusername > > I need to parse that into a structure like > $users = array( > 'username', > 'username with spaces', > 'anotherusername' > ); try preg_match i think the expression could look something like this: '/users:\s*(^\s+)"(.*

[PHP] Out of the box algorithms

2002-02-06 Thread Stefan Rusterholz
Hi As part of a class I'm building I need to parse a file where following line occurrs: users: username "username with spaces" anotherusername I need to parse that into a structure like $users = array( 'username', 'username with spaces', 'anotherusername' ); The issue is