大多数文本编辑正则表达式替换的快速操作


^([^:]+):(.*)$
'$1' => '$2' ,


User-Agent: Dalvik/2.1.0 (Linux; U; Android 5.1; MX5 Build/LMY47I)
Host: xxx.xxx.xxx
Connection: Keep-Alive
Accept-Encoding: gzip
Content-Type: application/x-www-form-urlencoded
Content-Length: 121

==》替换为

'User-Agent' => ' Dalvik/2.1.0 (Linux; U; Android 5.1; MX5 Build/LMY47I)' ,
'Host' => ' cooperation.html5.qq.com' ,
'Connection' => ' Keep-Alive' ,
'Accept-Encoding' => ' gzip' ,
'Content-Type' => ' application/x-www-form-urlencoded' ,
'Content-Length' => ' 121' ,

猜你喜欢

转载自gelongmei.iteye.com/blog/2300801