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 -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -