Hi All,
I believe this is the correct way to remove leading and trailing
spaces from strings.

Q1.
db.define_table('test',
    Field('name','string', requires=CLEANUP() )
)
But I need regex in there? Sorry I couldn't figure the solution :(

Q2.
So, at the moment I am doing this instead:
    if request.vars.name:
        request.vars.name= request.vars.name.strip()
Can anyone see a problem with this method? (Maybe it's better?).

-D

Reply via email to