关于Regex全字符匹配

JIN Weijie
JIN Weijie
Published in
1 min readFeb 5, 2007

前加^后加$

比如^[\d]+$

abc123这个就不match了,IsMatch返回false

如果[\d]+

abc123 IsMatch的话就会返回true

--

--

JIN Weijie
JIN Weijie

Maximizing Quality of Life, Being Earth Friendly.