我想提取一個文件,它應該[{"linkId":"changeDriveLink"
和完成由文本開始只是befor ,"zone"
正則表達式使用Python
我輸入的是:
[{"linkIdsd":"changeDridsdve [{"linkId":"changeDriveLink","url":"/drive
/3696434","zoneId":"forceAjax"},{"linkId":"printProductsFormSubst","url":"/drive/rayon.pagetemplate.substitutionlist.printproductsformsubst","zoneId":"forc
,"zone"
,我想有:
[{"linkId":"changeDriveLink","url":"/drive
/3696434","zoneId":"forceAjax"},{"linkId":"printProductsFormSubst","url":"/drive/rayon.pagetemplate.substitutionlist.printproductsformsubst","zoneId":"forc
我怎麼可以通過正則表達式做到這一點嗎?
在閱讀更多關於請提供[MCVE(http://stackoverflow.com/help/mcve)樣本你的json輸入。 – gdlmx
,謝謝,我編輯我的問題,謝謝 – parik