BTW, for the specific case there's IS_LIST_OF_EMAILS :P
On Wednesday, December 10, 2014 10:21:07 AM UTC+1, desta wrote:
>
> Thank you Manuele for the quick answer. Even though I read the
> documentation I didn't understand that I could do that! Thank you for
> pointing that out to me. It works g
Thank you Manuele for the quick answer. Even though I read the
documentation I didn't understand that I could do that! Thank you for
pointing that out to me. It works great.
Thanks again.
On Wednesday, December 10, 2014 10:51:22 AM UTC+2, Manuele wrote:
>
> Off course you can!
>
> http://web2p
Off course you can!
http://web2py.com/books/default/chapter/29/07/forms-and-validators#Validators
Check out the examples reported in doc for un derstanding the standard
behaviour of validators, such as:
|>>> IS_MATCH('a')('ba')
('ba', ) # no pass
>>> IS_MATCH('a',strict=False)('ab')
('a', None)
Hi,
web2py features some really useful validators. Is it possible to use them
outside of forms? For example, lets assume a string that contains comma
separated emails as inputted from the user. After splitting the string to
extract individual emails, can I use the IS_EMAIL validator to validate
4 matches
Mail list logo