Regular expression: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
Line 18: Line 18:
# click "Replace all"
# click "Replace all"


== 方案2 ==
== 方案2: Notepad++ ==
使用[http://notepad-plus-plus.org/ Notepad++]軟體
使用[http://notepad-plus-plus.org/ Notepad++]軟體
# 選單: 尋找 -> 取代
# 選單: 尋找 -> 取代
Line 25: Line 25:
## 取代成: ,
## 取代成: ,
# 勾選全部取代
# 勾選全部取代
----
相關資料
* [http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Replacing_Newlines How To Replace Line Ends, thus changing the line layout] last visited: 2010-01-27


== 方案3 ==
== 方案3 ==

Revision as of 11:20, 27 January 2011

將Email清單,轉成Email軟體可以使用的寄信名單 (取代換行符號)

[email protected]
[email protected]
[email protected]

改成
[email protected], [email protected], [email protected]

方案1

使用EmEditor軟體

  1. Menu: Search -> Replace
  2. click "Use Regular Expression"
    1. Find: \n
    2. Replace with: ,
  3. click "Replace all"

方案2: Notepad++

使用Notepad++軟體

  1. 選單: 尋找 -> 取代
  2. 搜尋模式: 勾選「增強模式」 (不是勾選「用類型表式」)
    1. 尋找目標: \r\n
    2. 取代成: ,
  3. 勾選全部取代

相關資料

方案3

使用Microsoft Word 2002軟體

  1. 選單: 編輯 -> 取代
  2. 勾選增強模式
    1. 尋找目標: ^p (段落標記)
    2. 取代為: ,
  3. 勾選全部取代