Re: Question to eregi Syntax

From: Date: Thu, 07 Jul 2005 15:43:19 +0000
Subject: Re: Question to eregi Syntax
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-218296@lists.php.net to get a copy of this message
thx, that's what I've figured. but looking for ^ with any search engine won't give you anything useful. thx JaNbro M. Sokolewicz schrieb:
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


« previous php.general (#218296) next »