regex - Translate Go Regexp to Javascript -


how go regexp translate javascript?

"[\\w!#$%&'*+/=?^_`{|}~-]+(?:\\.[\\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\\w](?:[\\w-]*[\\w])?\\.)+[a-za-z0-9](?:[\\w-]*[\\w])?" 

  1. there has better way you're doing monstrosity of pattern.

  2. 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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

excel vba - VBA Proxy auto-configuration for http requests -

php - phpWord - Tables with borders in headers/footers -