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. 10.1综合强化刷题 Day6

    T1 排序 题目描述 小Z 有一个数字序列a1; a2; .... ; an,长度为n,小Z 只有一个操作:选 定p(1<p<n),然后把ap 从序列中拿出,然后再插⼊到序列中任意位置. ...

  2. asp.net获取URL方法

    方法如下: Request.Url.ToString()获取完整url(协议名+域名+站点名+文件名+参数):https://localhost:44300/WebForm1.aspx?abc=123 ...

  3. ArcObject开发时,axtoolbarcontrol中一些添加的按钮是灰色的问题

    以Pan按钮为例,当axtoolbarcontrol设置好buddycontrol后,如果你有两个视图的话有些工具pagelayout视图下有用,有些在map视图下有用. 例如,在以下图的方式添加的p ...

  4. 一种全新的自动调用ajax方法

    <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http ...

  5. 2017.2.20 activiti实战--第五章--用户与组及部署管理(一)用户与组

    学习资料:<Activiti实战> 第五章 用户与组及部署管理(一)用户与组 内容概览:讲解activiti中内置的一套用户.组的关系,以及如何通过API添加.删除.查询. 5.1 用户与 ...

  6. 接口性能测试方案 白皮书 V1.0

    一. 性能测试术语解释 1. 响应时间 响应时间即从应用系统发出请求开始,到客户端接收到最后一个字节数据为止所消耗的时间.响应时间按软件的特点再可以细分,如对于一个 C/S 软件的响应时间可以细分为网 ...

  7. vue key 的另外一个用法 过度

    key也可以用于强制替换元素/组件而不是重复使用它.当你遇到如下场景时它可能会很有用: 完整地触发组件的生命周期钩子 触发过渡 例如: <transition> <span :key ...

  8. MySqlDataReader

    本文讲述如何从SqlDataReader或MySqlDataReader中循环读取内容并输出 sqlserver和mysql的DataReader的用法完全一样,只是名字不同,以mysql为例 str ...

  9. C#比較对象的相等性

    对于相等的机制全部不同,这取决于比較的是引用类型还是值类型.以下分别介绍引用类型和值类型的相等性. 1.比較引用类型的相等性 System.Object定义了三种不同的方法,来比較对象的相等性:Ref ...

  10. python windows package/module 安装

    方法一: cmd中运行pip install xx 注意:1.pip添加至环境变量 2.系统自带这些安装模块 运行pip freeze > requirements.txt 可以在require ...