Re: Eregi filtering..
| From: | Mike Migurski | Date: | Tue, 08 Jul 2003 00:24:18 +0000 |
| Subject: | Re: Eregi filtering.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154282@lists.php.net to get a copy of this message | ||
>elseif (eregi("a-ZA-9", $v_tel_filter)) {
>echo "'$v_tel_filter' Telephone Number Contains words";
>
>} else {
>
>im looking how to verify numbers alone and dash "-" can that be possible? I
>have tried using "a-ZA-9" but did not work.
/^[\-\d]+$/ should match a string of just digits and dashes.
---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca http://mike.teczno.com/contact.html