用String对象的match()方法,RegExp和Match对象是不行的。 转载于:https://www.cnblogs.com/huyaxiong/archive/2013/03/19/2968481.html