Re: Finding numerical values in a string
| From: | Joseph Blythe | Date: | Thu, 31 Aug 2000 12:11:08 +0000 |
| Subject: | Re: Finding numerical values in a string | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14567@lists.php.net to get a copy of this message | ||
> Dana.Reed@clinicaldatacare.com wrote:
>
> Clean way would be e.g.
>
> preg_match("/(\d+)$/", $string, $matches);
> $num = $matches[1];
>
Thanks I will give this a try :-)
Regards
Joseph