正则表达式,请看该贴:
http://community.csdn.net/Expert/topic/3506/3506609.xml?temp=.152569