Editing
Regular replace blank lines
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== 資料狀況1 == 資料狀況 <pre> " abc " // 不是空白行 " " // 空白行 (1): 行內包含一個或多個空白字元,可能是空白鍵 (SPACE) 或定位鍵 (TAB) "" // 空白行 (2): 行內不包含任何字元 </pre> 預期目標: * 清除空白行 (1) 、空白行 (2) 使用工具: 適用 Sublime Text 與 EmEditor 軟體,需勾選「使用規則運算式」。{{exclaim}} 語法不適用 Notepad++ 軟體<ref>[http://www.sitepoint.com/forums/showthread.php?448843-Regex-delete-multiple-blank-lines Regex: delete multiple blank lines]</ref> * 尋找: ** {{Mac}} {{kbd | key=<nowiki>^[\s\t]*$\n</nowiki>}}、或 {{kbd | key=<nowiki>^\s*\n</nowiki>}} ** {{Win}} {{kbd | key=<nowiki>^[\s\t]*$\r\n</nowiki>}}、或 {{kbd | key=<nowiki>^\s*\r\n</nowiki>}} * 取代為: 空 (不需要輸入任何字) 使用工具: Notepad++ * Notepad++ 軟體選單: 編輯 -> 行列 -> 移除空行(含空白字元)<ref>[http://stackoverflow.com/questions/3866034/removing-empty-lines-in-notepad regex - Removing empty lines in Notepad++ - Stack Overflow]</ref>
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information