> const _EXP_EMAIL = `^[a-z0-9._%+\-]+@[a-z0-9.\-]+\.[a-z]{2,4}$`
{2, 4} -- the documentation for regexp doesn't mention counted repetitions.
I assume you're aware of the required complexity for doing a good job of
doing syntax-checking on email addresses, and that the only real validation
is being able to send an email to that address and get some confirmation
back?
--
Chris "allusive" Dollin
Here I use a *simple* regexp. to validate email addresses, but it
doesn't validates like I expect.
It looks me that the regexp. is correct, isn't?
===
package main
import (
"fmt"
"os"
"regexp"
)
const _EXP_EMAIL = `^[a-z0-9._%+\-]+@[a-z0-9.\-]+\.[a-z]{2,4}$`
Why do you think they did not implement it?
--
They did implement it. They did not use regexes to do so. Why is this relevant to go?
--
--
--
--