整理了下之前写表达验证的demo。

https://github.com/namletneg/verifyForm