Re: [PHP] Help with REGEXP please

2005-03-04 Thread John Nichel
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 71

RE: [PHP] Help with REGEXP please

2005-03-04 Thread Chris W. Parker
Shaun on Friday, March 04, 2005 11:55 AM said: > Please could someone tell me how i can extract the information from a > string that is after 'ID_' and before '_FN' Get the RegExCoach. It'll be your best friend. Try: /ID_(.*)_FN/ Chris. -- PHP General Mailing

Re: [PHP] Help with REGEXP please

2005-03-04 Thread Leif Gregory
Hello Shaun, Friday, March 4, 2005, 12:54:34 PM, you wrote: S> Please could someone tell me how i can extract the information from S> a string that is after 'ID_' and before '_FN' This will match any upper or lowercase letter and number. If you have other characters like _ , etc, then you'll ne

[PHP] Help with REGEXP please

2005-03-04 Thread Shaun
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php