in reply to Re: Code review: validation regexes
in thread Code review: validation regexes

Hi there, what would you suggest for the regexes? I am not very good at them!

The second script picks up the files every 5 minutes, and will send out an e-mail if the username has already been taken. However, if there is a way to check for these duplicates, then please show me.

Is there an easier way of writing this script? I need users to be added to the system via a site (that has restricted access), but am worried about the security of the whole thing, and that is why i have opted to do this the 'cron' way.
  • Comment on Re: Re: Code review: validation regexes

Replies are listed 'Best First'.
Re: Code review: validation regexes
by Abigail-II (Bishop) on Jul 08, 2003 at 19:19 UTC
    Hi there, what would you suggest for the regexes?

    That's not the right question to ask. That's like responding to someone saying I don't think granite is the right material to make lifesavers from with what kind of stone would you suggest?

    For email validation, I would not use a regexp. RFC(2)822 is authorative. I'd use a module that follows the specs from the RFC.

    As for names, I don't think there's a standard. But if you're going to accept digits in names, I would want accented letters and ' as well.

    Abigail