Hi again!
Im sorry it was my fault. I didn't made propper use of RegExp, thats
all. It should have been
form.regexp('\A[\w\s]+\Z',"foo")

On Jul 10, 7:08 pm, rostoQ <[EMAIL PROTECTED]>
wrote:
> Hi there!
>
> keywordform = form.Form(
>     form.Textbox("keyword", form.regexp('\w+', 'only alphanumeric'))
> )
>
> This shoud only allow Alphanumeric input, but it doesnt (always)! If i
> type "=foo" it fails, if i type "bar)=" it does not fail.
>
> Someone said it could be because form.regexp() only checks the first 5
> Integers or s.th? Im not very into Python (programming at all), so
> could someone point me why it behaves like this? And maybe even a
> solution where the whole string is checked?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to