In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Dhaval Desai) wrote:
> Can somebody enlighten me with regular expressions...
> like [^\-*] something like that. To me it appears as a
> code language..
>
> Can Anybody tell me what do the various characteers
> do?
> is there any good article on anywebsites..? besides.
> phpwizard .com I have checked that allready...
PHP gives you the option of using either:
* POSIX regular expressions (ex. ereg_*), which beginners often seem to
prefer, or
* Perl-compatible regular expressions (PCRE; ex. preg_*), which are very
powerful and fast but don't always look as friendly
For POSIX regex, you can do "man regex" at the command line, or do a search
for "POSIX regular expressions" in any search engine. There are also many,
many tutorials on the net (including one at PHPbuilder.com) explaining the
"extended regular expressions" syntax, which is basically what that is.
For the PCRE functions, the PHP manual includes detailed info about the
syntax. Since it also details the minor differences between those
functions and the Perl equivalent, any tutorial on Perl regular expressions
should be helpful in clarifying anything the manual doesn't make clear
enough.
For an offline resource, there's the O'Reilly book "Mastering Regular
Expressions".
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]