Regex 常用

  1. 邮箱

/^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/

或者

/^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$/

原文地址:https://www.cnblogs.com/globalwatch/p/2790772.html