Not signed in (Sign In)

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthoraslunjski
    • CommentTimeDec 27th 2009 edited
     
    Hi,

    Is it possible to limit a field to a certain number of characters (say 20) and also disallow spaces and punctuation?

    Thanks
    • CommentAuthordbuschho
    • CommentTimeDec 27th 2009
     
    Hello, this is probably best done with regexp using our custom validation.

    Two regexpressions that popped into my head are:
    ([A-z,0-9]){20}

    and
    ([.~\w\t\,\.\!\?]){20}

    The first is a bit cleaner, while the second is more inclusive. You can find out a lot about regular expressions here:
    http://www.regular-expressions.info/reference.html
    and test it here:
    http://regexpal.com/

    Happy to help further,
    FA Support.