in reply to Re: validation of posted data.
in thread validation of posted data.

hi there, i have a seperate piece of code to validate blanks anlong with usernames > 20 < 3 chars

Replies are listed 'Best First'.
Re: Re: Re: validation of posted data.
by demerphq (Chancellor) on Aug 05, 2002 at 07:58 UTC
    All of that can be done in a regex:
    /\A\w{3,20}\z/
    Will match only word sequences that are 3 to 20 characters long ONLY.

    Yves / DeMerphq
    ---
    Writing a good benchmark isnt as easy as it might look.