On 12 October 2011 10:41, Saurabh S <ggtestlo...@gmail.com> wrote:

> db.organisations.name.requires=[IS_MATCH('^[a-z]',
>
>
This means that you will only names with one character and that character
must be in the range a-z.

The following form will accept names with any character except 0-9.

See the

 form = SQLFORM.factory(
        Field('your_name', requires=IS_MATCH('\D+')
        ))

Have a look at a Python regular expression howto eg.
http://docs.python.org/dev/howto/regex.html

Regards
Johann
-- 
 May grace and peace be yours in abundance through the full knowledge of God
and of Jesus our Lord!  His divine power has given us everything we need for
life and godliness through the full knowledge of the one who called us by
his own glory and excellence.
                                                    2 Pet. 1:2b,3a

Reply via email to