使用正则表达式

http://www.cnblogs.com/zpq521/archive/2007/08/06/844209.html
原文地址:https://www.cnblogs.com/niuniu502/p/889945.html