note 45462 added to ref.regex
| From: | tgt at tip dot nl | Date: | Wed, 08 Sep 2004 09:17:45 +0000 |
| Subject: | note 45462 added to ref.regex | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76210@lists.php.net to get a copy of this message | ||
Tip !
Metacharacters in regular expresions are usefull and easy to use.
The following is a set of special values that denote certain common ranges. They have the advantage
that also take in account the 'locale' i.e. any variant of the local language/coding
system.
[:digit:] Only the digits 0 to 9
[:alnum:] Any alphanumeric character 0 to 9 OR A to Z or a to z.
[:alpha:] Any alpha character A to Z or a to z.
[:blank:] Space and TAB characters only.
[:xdigit:] .
[:punct:] Punctuation symbols . , " ' ? ! ; :
[:print:] Any printable character.
[:space:] Any space characters.
[:graph:] .
[:upper:] Any alpha character A to Z.
[:lower:] Any alpha character a to z.
[:cntrl:] .
----
Manual Page -- http://www.php.net/manual/en/ref.regex.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45462
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45462&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45462&report=yes
Search -- http://master.php.net/manage/user-notes.php