| 
	
 | 
 Posted by Andy Hassall on 06/22/06 20:53 
On 22 Jun 2006 13:21:50 -0700, "Chung Leong" <chernyshevsky@hotmail.com> wrote: 
 
>Andy Hassall wrote: 
>> 
>>  There are undoubtably faster, more concise and cleverer ways of doing this. 
> 
>Which would involve, of course, regular expression :-) 
> 
>preg_match_all('/(?P<name>[^,]+),(?P<url>[^,]+)/', $list, $m, 
>PREG_SET_ORDER); 
 
 Ah ha, was trying to work out how to get it with PCRE, knew it was possible 
:-) 
 
--  
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk 
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
 
  
Navigation:
[Reply to this message] 
 |