got the answer... this is the pattern ^[A-Za-z0-9\s!#$@%^&*()_+=-`~\\\]\[{}|';:/.,?><] 转载于:https://www.cnblogs.com/happy-Chen/p/3682210.html