re.compile('"ssid":"[^"]*"}',re.MULTILINE)

regex ,str_= re.compile('"ssid":"[^"]*"}',re.MULTILINE),'i":-66,"ssid":"GZZ"},{"bssid":"0015c0642d74","rssi":-67,"ssid":"Topway_172484"}'
regex.sub('"ssid":"BETA"}',str_)
'i":-66,"ssid":"BETA"},{"bssid":"0015c0642d74","rssi":-67,"ssid":"BETA"}'

'[{"bssid":"a8574ef74872","rssi":-63,"ssid":"TP-LINK_2D2D3E"},{"bssid":"c8e7d85e5666","rssi":-70,"ssid":"MERCURY_5666"},{"bssid":"3496728a7c51","rssi":-71,"ssid":"TP-LINK_7C51"},{"bssid":"80d4a53ee038","rssi":-72,"ssid":"CU_yk4g"},{"bssid":"cc81da712e00","rssi":-72,"ssid":"HJX-2.4G"},{"bssid":"503aa067deb8","rssi":-73,"ssid":"MERCURY_赵4"},{"bssid":"500ff56caeb0","rssi":-73,"ssid":"Tenda_6CAEB0"},{"bssid":"80891709a762","rssi":-75,"ssid":"Missbear、\x01"},{"bssid":"94772b3a6a50","rssi":-76,"ssid":"HUAWEI-GS3VJM"},{"bssid":"f4ee1434e2ec","rssi":-76,"ssid":"MERCURY_1201"},{"bssid":"7811dc0255ae","rssi":-77,"ssid":"Xiaomi_55AD"},{"bssid":"bc4699666400","rssi":-77,"ssid":"TP-LINK_666"},{"bssid":"50bd5f744268","rssi":-78,"ssid":"TP-LINK_301"},{"bssid":"98bc577b99b2","rssi":-78,"ssid":"ChinaNGB-YdAddM"},{"bssid":"98bc577b9916","rssi":-79,"ssid":"ChinaNGB-Yd6xDw"}]'
'[{"bssid":"50bd5f1235c6","rssi":-55,"ssid":"TP-LINK_35C6"},{"bssid":"d4a14894e5dc","rssi":-63,"ssid":"FRANK-HY"},{"bssid":"882593cfc43c","rssi":-64},{"bssid":"d4a14894e5e0","rssi":-65,"ssid":"FRANK-HY_5G"},{"bssid":"0c4c392f8a87","rssi":-66,"ssid":"ChinaNet-dRPt"},{"bssid":"34967251d70b","rssi":-67,"ssid":"ziroom23H"},{"bssid":"f44c7028192d","rssi":-70,"ssid":"Topway_28192D"},{"bssid":"cc2d2190b348","rssi":-71,"ssid":"K888"},{"bssid":"3c8bcdd2dc5d","rssi":-72,"ssid":"ChinaNet-qpbq"},{"bssid":"40f420d06f52","rssi":-75,"ssid":"ChinaNet-wtLh"},{"bssid":"dcee060b8317","rssi":-77,"ssid":"Wo4G-6TTM"},{"bssid":"dcfe18e26ba5","rssi":-78,"ssid":"11111"},{"bssid":"446ee5959e38","rssi":-78,"ssid":"HUAWEI-HD44HP"},{"bssid":"74ff4cf39d30","rssi":-79,"ssid":"��\x0e��)訇�\x0e����̀�0D��|"},{"bssid":"7811dc139778","rssi":-79,"ssid":"小米路由器23CD600"}]'
['a1000032d9d3c2', '', '[{"bssid":"0021274b94e4","rssi":-61,"ssid":"sam"},{"bssid":"94772b731a34","rssi":-68,"ssid":"kuaitou"},{"bssid":"74ff4c8cb7a2","rssi":-78,"ssid":"��\x0e��)訇�\x0e����̀�0D��|"},{"bssid":"ec8ac7adc3b7","rssi":-78,"ssid":"CMCC-pwpb"},{"bssid":"8ca6dfcaee65","rssi":-80,"ssid":"TP-LINK_EE65"}]', '城市明珠花园1栋', '城市明珠花园1栋', '深圳市', '', '电梯等候区', 'CP-NMP-SHEN_ZHEN_SHI-BAO3AN1QU1-CHENG2SHI4MING2ZHU1HUA1YUAN21DONG4-110003-t14-r1', '', '住宅小区', '宝安区', '龙观路龙观路', '0.0', '0.0', '', '0.0', '0.0']
['a1000032d9d3c2', '', '[{"bssid":"0021274b94e4","rssi":-61,"ssid":"!BETA!"},{"bssid":"94772b731a34","rssi":-68,"ssid":"!BETA!"},{"bssid":"74ff4c8cb7a2","rssi":-78,"ssid":"!BETA!"},{"bssid":"ec8ac7adc3b7","rssi":-78,"ssid":"!BETA!"},{"bssid":"8ca6dfcaee65","rssi":-80,"ssid":"!BETA!"}]', '城市明珠花园1栋', '城市明珠花园1栋', '深圳市', '', '电梯等候区', 'CP-NMP-SHEN_ZHEN_SHI-BAO3AN1QU1-CHENG2SHI4MING2ZHU1HUA1YUAN21DONG4-110003-t14-r1', '', '住宅小区', '宝安区', '龙观路龙观路', '0.0', '0.0', '', '0.0', '0.0']

re.compile('"ssid":"[^"]*"}',re.MULTILINE)

regularexpression_action的更多相关文章

随机推荐

  1. PostMan的在线安装和简单使用

    Postman是一款很流行的WEB接口测试工具,因其强大的功能及清新的界面,赢得许多测试及开发者的喜爱.   1.PostMan的在线安装 因google退出中国,使得chrome上的扩展插件无法在线 ...

  2. Topcoder SRM 664 DIV 1

    BearPlays 快速幂 题意: 给你两个数A,B,有种操作是将大的数减去小的数,并将小的数乘以2.反复k次,问你最后的小的数回是多少. 题解: 由于整个过程$A+B$的值是不会改变的.现在令$S= ...

  3. new子类会先运行父类的构造函数

    发现子类构造函数运行时,先运行了父类的构造函数.为什么呢? 原因:子类的所有构造函数中的第一行,其实都有一条隐身的语句super(); super(): 表示父类的构造函数,并会调用于参数相对应的父类 ...

  4. ElasticSearch命令增加字段总结

    1.建立一个String类型的字段 curl -XPUT http://192.168.46.163:9200/t_risk_case/_mapping/t_risk_case?pretty -d ' ...

  5. IDEA破解 2017 IDEA license server 激活(可用)

    进入ide主页面,help-register-license server,然后输入 http://idea.iteblog.com/key.PHP(注意:php要小写)即可~

  6. Unity3D开发基础组件提取总结

    在游戏开发过程中,除了逻辑功能的开发之外,还有非常多基础的模块.这些模块,对大部分手机网络游戏来说都是一样的.所以,在上个游戏已经上线运营大半年之际,我认为有必要将这些模块整理出来.让后面其它游戏的开 ...

  7. mysqldumps 远程备份

    普通模式 mysqldump -uroot -ppassword -h10.26.114.25 -P3306 --databases databasename > XXX.sql 多条在一起模式 ...

  8. 雪习新知识:Java 内部类

    本文出自 http://blog.csdn.net/zhaizu/article/details/49176543,转载请注明出处. 嵌套类,内部类,静态内部类,静态嵌套类.匿名类,成员类,局部类,傻 ...

  9. zepto jquery和zepto的区别?

    jQuery 由于强大的生命力基本上是一个事实标准,所以大部分工具 lib 在 DOM 操作.动画等功能上或多或少都会是 jQuery-like 的. Zepto 的 API 就是完全兼容 jQuer ...

  10. 数据结构基础-Hash Table详解(转)

    理解Hash 哈希表(hash table)是从一个集合A到另一个集合B的映射(mapping). 映射是一种对应关系,而且集合A的某个元素只能对应集合B中的一个元素.但反过来,集合B中的一个元素可能 ...