RE模块疑问

待处理:

>>> re.findall(r'[-+]*\d+(?:\.\d+)?','-++++---+123.012')
['-++++---+123.012']
>>> re.findall(r'[-+]*\d+(\.\d+)?','-++++---+123.012')
['.012']

 

posted @ 2013-11-08 18:02  LisPythoniC  阅读(167)  评论(0编辑  收藏  举报