RE: [PHP] Newbee: Regular Expressions
| From: | Shashank Tripathi | Date: | Sat, 02 Sep 2000 10:17:33 +0000 |
| Subject: | RE: [PHP] Newbee: Regular Expressions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14919@lists.php.net to get a copy of this message | ||
[0-9] means that it has to be a digit between 0 and 9.
[A-Z] means that it can have alphabet
and so on..
{4} means that it has to have 4 digits.
{1,2} means it can have either 1 or two digits.
and so on...
HTH,
Shanx
| -----Original Message-----
| From: Martin Thoma [mailto:martin@radiok2r.de]
| Sent: Saturday, September 02, 2000 5:41 PM
| To: php-general@lists.php.net
| Subject: [PHP] Newbee: Regular Expressions
|
|
| Hello !
|
| I don't know nothing about how to build a regular expression. Could
| someone give me a hint or some examples, what all this
| ([0-9]{4})-([0-9]{1,2})... stuff means ?
|
| Regards
|
| Martin
|
| --
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
| For additional commands, e-mail: php-general-help@lists.php.net
| To contact the list administrators, e-mail: php-list-admin@lists.php.net
|
|