Re: Pattern Capture

From: Date: Tue, 13 Jan 2004 15:34:04 +0000
Subject: Re: Pattern Capture
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174453@lists.php.net to get a copy of this message
> 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 believe some of the other regular expression functions have similar arguments as well. Chris

« previous php.general (#174453) next »