IS_MATCH('\d{4}\s?\w{2}')

On Apr 8, 1:52 am, jmverm...@xs4all.nl wrote:
> Denes,
>
> > same here, IS_LENGTH is invalid with integers (numbers don't have a
> > length property in Python).
>
> I didn't know that, however, removing the IS_LENGTH() validator solved
> the problem )after finishing the first version of the application I am
> working on I'll definitely have to dive into Python).
>
> For the record:
>
> > (an example of copy/paste/forget-to-fix, it happens to me too)
>
> Thanks, but even so a stupid mistake.
>
> > I don't know how postal codes look like over there but Massimo's
> > suggestion only works if they are exactly 4 digits long and if they
> > are strings, otherwise you will get the same "Not Unicode" error.
>
> Over here postal codes read like: 1012 DV or 9903 AV and they never
> start with a 0;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to