2013-11-01 37 views
0

我使用Textpad編輯一些文字中,我需要做下面的改造封閉所有文字,正則表達式中Textpad - 刪除沒有引號內

原始文本

<ds:column name="REFRIGERATE" type="String" /> 
<ds:column name="REORDER_DRUG_ID" type="Double" /> 

應該成爲

REFRIGERATE   String 
REORDER_DRUG_ID  Double 

我需要提取引號中的所有內容並刪除其他所有內容。

"(.*?)" is not helping me. 

回答

3

請嘗試以下操作。

查找:.+?((?<=")[^ ]+(?="))|"[^"]+$

替換:\1\t

我沒有TextPad安裝但Notepad++測試的假設都應該是相似的。

相關問題