[quotes restored to bottom-posting order for clarity]

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] ("Johnson, Kirk") wrote:

> > 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?

> I think [.]{0,9} will get it.

That would accept any string containing a substring of 0-9 literal periods 
in a row. The regex for a string of exactly 0-9 characters of any kind 
would be "^.{0,9}$".  But FWIW using strlen() instead of a regex would 
probably be more efficient here...

-- 
CC

-- 
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]

Reply via email to