在线测试工具
http://tool.oschina.net/regex/
https://c.runoob.com/front-end/854
语法查找表
http://tool.oschina.net/uploads/apidocs/jquery/regexp.html
python正则教程
http://www.runoob.com/python/python-reg-expressions.html
https://www.cnblogs.com/greatfish/p/7572131.html
常用正则语句
http://www.cnblogs.com/zxin/archive/2013/01/26/2877765.html
import re
ss=r'POLYGON ((35 10,45 45,15 40,10 20,35 10),(20 30,35 35,30 20,20 30))'
xx=r'(?<=\().*(?=\))'
pa=re.compile(xx)
res=pa.findall(ss)
res
['(35 10,45 45,15 40,10 20,35 10),(20 30,35 35,30 20,20 30)']
网友评论