Re: [PHP] Pattern Capture

2004-01-13 Thread Jason Wong
On Tuesday 13 January 2004 23:27, Cameron B. Prince wrote: > Ok, I feel really lame for asking this, but I can I do this in PHP: > > $userid =~ /([\D]+)/; > $baseName = $1; > > It seems like "Pattern Capture" is not the right term for the similar > function in PHP. I'm not sure what to search for.

Re: [PHP] Pattern Capture

2004-01-13 Thread Chris Boget
> Ok, I feel really lame for asking this, but I can I do this in PHP: > $userid =~ /([\D]+)/; > $baseName = $1; > It seems like "Pattern Capture" is not the right term for the similar > function in PHP. I'm not sure what to search for. Look at the third argument for the preg_match() function. I b