note 52125 deleted from function.ereg by nlopess
| From: | nlopess@php.net | Date: | Thu, 21 Apr 2005 18:32:16 +0000 |
| Subject: | note 52125 deleted from function.ereg by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-88364@lists.php.net to get a copy of this message | ||
Note Submitter: newbie
----
can i use eregi to do this?
i want to check for the validation of ISBN
i.e. it can accept data that contain 3 dash(-),
saparating 10 digits into 4 groups of no. with the first and the last group should have 1 digit only
here's the examples:
0-0-0000000-0
0-00-000000-0
0-000-00000-0
0-0000-0000-0
0-00000-000-0
0-000000-00-0
0-0000000-0-0