|
Posted by janbro on 07/07/05 18:43
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
Navigation:
[Reply to this message]
|