Regular expression: Difference between revisions

Jump to navigation Jump to search
add Search unmatched string
m (add 問答服務)
(add Search unmatched string)
Line 116: Line 116:
# 搜尋模式: 勾選「用類型表示」
# 搜尋模式: 勾選「用類型表示」
## 尋找目標: {{kbd | key=a(.*)le}} 就可以找到(1)apple (2)apps lesson ... 等a開頭、le結尾的文字,中間可夾雜空白。 {{exclaim}} 中文字串搜尋,建議將文件的編碼改成 UTF-8 編碼
## 尋找目標: {{kbd | key=a(.*)le}} 就可以找到(1)apple (2)apps lesson ... 等a開頭、le結尾的文字,中間可夾雜空白。 {{exclaim}} 中文字串搜尋,建議將文件的編碼改成 UTF-8 編碼
== Search unmatched string ==
=== case: find un-commented console.log ===
original format
<pre>
  console.log("un-commented debug information");
  //console.log("commented debug information");
</pre>
Search pattern: find not started with the / symbol before the string "console.log"
<pre>
  [^/](console\.log)
</pre>


== syntax ==
== syntax ==

Navigation menu