Hello, I would do such a thing :
import string db(db.ref_method.method_identifier.translate(None, string.punctuation) == test.translate(None, string.punctuation)).select() But it not work... Would it requires the DAL translate "translate" into sql translate function to achieve that? I would like to implement into IS_NOT_IN_DB() a "bare" unique constraint that would strip all specials charaters (and space) before make search in the records values to be unique. Would it works better with regexp?? Thanks Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

