On Monday 09 April 2001 23:37, you wrote:
> Hi there,
>
> I need a regular expression that accepts *anything* without
> restrictions, only that the size of the string should be between (for
> instance) 0 and 9 characters. I know the {0,9} trick, but how do I
> accept *anything* in a form field?
"anything" = '.'
=> /^.{0,9}$/ will do the trick
strlen () will be faster though
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
AAAAA - American Association Against Acronym Abuse
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]