我有以下文字:
OR (((Sales.customer)=""))
OR (((Sales.customer)=""))
OR (((Sales.customer)=""))
OR (((Sales.customer)=""))
OR (((Sales.customer)=""))
OR (((Sales.customer)=""))
我需要在“”之間插入不同值的列表。 Alt + C 只能允許單一值插入...那麼在這種情況下如何插入多個值呢?
答案1
無法使用記事本++動態地將這些引號替換為值。
我可以想出幾種用程式碼來做到這一點的方法。
我創建了一些 js 程式碼,它將遍歷數組並列印出值,如下所示:https://jsfiddle.net/cumqd69r/
或者這裡有一些 python 可以做同樣的事情:
#python
line = 'OR (((Sales.customer)="%s"))'
for value in ('value1', 'value2', 'valueN'):
print line % value


