regex - Translate Go Regexp to Javascript -
how go regexp translate javascript?
"[\\w!#$%&'*+/=?^_`{|}~-]+(?:\\.[\\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\\w](?:[\\w-]*[\\w])?\\.)+[a-za-z0-9](?:[\\w-]*[\\w])?"
there has better way you're doing monstrosity of pattern.
regular expressions tend pretty portable. should drop regex tester (google it) or script file , see if matches expect. if don't, rebuild regex in chunks , see piece causes fail.
Comments
Post a Comment