Re: Help with REGEXP please

From: Date: Fri, 04 Mar 2005 20:42:16 +0000
Subject: Re: Help with REGEXP please
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-210040@lists.php.net to get a copy of this message
Shaun wrote:
Hi, Please could someone tell me how i can extract the information from a string that is after 'ID_' and before '_FN' Thanks for your help.
preg_match ( "/ID_(.*)_FN/", $string, $result ) The data will be in $result[1] if there is a match. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com

« previous php.general (#210040) next »