[英]How to add spaces between each capital letter inside double quotes using Regex in Notepad++?
在Notepad ++中使用正則表達式查找/替換,我試圖在雙引號內的每個大寫字母之間添加空格:
.Label("ATextWhichHasCapitalLetters")
.Label(Constants.DefinedLabel)
.Label("AnotherTextWhichHasCapitalLetters")
結果應該是:
.Label("A Text Which Has Capital Letters")
.Label(Constants.DefinedLabel)
.Label("Another Text Which Has Capital Letters")
我嘗試了很多表達式但未能得到預期的結果。
任何幫助將非常感激。
謝謝。
利用非單詞邊界表達式\\B
和向前看大寫字母來查找插入點,其余的前瞻性要求下面正好引用1個引號:
Search: \B(?=[A-Z][^"]*"[^"]*$)
Replace: <space>
見演示 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.