Re: Question to eregi Syntax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux