Re: Question to eregi Syntax
| From: | M. Sokolewicz | Date: | Thu, 07 Jul 2005 14:45:51 +0000 |
| Subject: | Re: Question to eregi Syntax | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-218295@lists.php.net to get a copy of this message | ||
janbro wrote:
Hi List,
my research hasn't turned anything useful up.
Probably 'cause I don't have enough info.
I've been playing around with the ereg function.
What I was wondering is what is the ^ for like
in the below example?
ereg('[^[:space:]a-zA-Z0-9_.-]{1,}', $name)
thx
janbro
it denotes the "start of the string"
This might help (although it's for PCRE syntax, the POSIX (ereg(i)) syntax is very similair):
http://www.php.net/manual/en/reference.pcre.pattern.syntax.php
This is the manpage for the POSIX syntax: (might be a bit harder to read if you're just starting)
http://www.tin.org/bin/man.cgi?section=7&topic=regex