Page 1 of 1

what this regex tells

Posted: Mon Oct 30, 2006 9:31 am
by iffo
Hi,

'regex' => '/^[0-9]+$/',

here i undersnad it will allow 0-9 , but then what does + and $ mean?

Posted: Mon Oct 30, 2006 9:36 am
by volka
^ start of subject/line
[0-9] any digit 0-9
+ 1 or omore ccurrences
$ end of subject/line

see also: http://de2.php.net/manual/en/reference. ... syntax.php

Posted: Mon Oct 30, 2006 9:51 am
by iffo
thanks a lot