This regex was intended to be used with a case-insensitive regular
_expression_ checker.  To make it case insensitive, there are two things
you'll have to do.

replace a-z in brackets with a-zA-Z

replace each of aero, coop, info, museum, and name with EVERY  POSSIBLE
CAPITALIZATION POSSIBILITY.

If I were you, I would probably do my email format validation on the
backend.

--Ben Doom

Jeff wrote:

> Got a cfinput, it's required, and the validation is a regular _expression_.
>
> The Problem: The regular _expression_ isn't allowing a capital letter after
> the '@'. I'm sure there are other faults with this regular _expression_, but
> you see...I'm just not "there" yet when it comes to troubleshooting these
> things, so I thought I'd paste the relevant portion here hoping for some,
> miracle regular _expression_ person to jump in and gimme a hand.
>
> Ready?
>
> Here it is:
>
> validate="regular_expression"
> pattern="^[_a-z0-9-]+(\.[_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]+)*\.(([a-z]{2,3
> })|(aero|coop|info|museum|name))$">
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to