From 12a899ab8540bc84f56a0dc6491be80a48499d49 Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:07 +0800 Subject: remove name attribute for zh-TW --- .../guide/regular_expressions/index.html | 70 +++++++++++----------- 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'files/zh-tw/web/javascript/guide/regular_expressions/index.html') diff --git a/files/zh-tw/web/javascript/guide/regular_expressions/index.html b/files/zh-tw/web/javascript/guide/regular_expressions/index.html index f9b4235c2a..2d5983d163 100644 --- a/files/zh-tw/web/javascript/guide/regular_expressions/index.html +++ b/files/zh-tw/web/javascript/guide/regular_expressions/index.html @@ -54,7 +54,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - \ + \

反斜線放在非特殊符號前面,使非特殊符號不會被逐字譯出,代表特殊作用。
例如:'b' 如果沒有 '\' 在前頭,功能是找出小寫 b;若改為 '\b' 則代表的是邊界功能,block 用意。
@@ -70,7 +70,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - ^ + ^

匹配輸入的開頭,如果 multiline flag 被設為 true,則會匹配換行字元後。

@@ -80,7 +80,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - $ + $

匹配輸入的結尾,如果 multiline flag 被設為 true,則會匹配換行字元。

@@ -88,7 +88,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - * + *

匹配前一字元 0 至多次。

@@ -99,7 +99,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - + + +

匹配前一字元 1 至多次,等同於 {1,}

@@ -107,7 +107,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - ? + ?

匹配前一字元 0 至 1 次,等同於 {0,1}

@@ -120,7 +120,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - . + .

(小數點)匹配除了換行符號之外的單一字元。

@@ -128,7 +128,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - (x) + (x)

Capturing Parentheses

@@ -141,7 +141,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - (?:x) + (?:x)

Non-Capturing Parentheses

@@ -166,7 +166,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - x(?=y) + x(?=y)

符合'x',且後接的是'y'。'y'為'x'存在的意義。

@@ -175,7 +175,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - x(?!y) + x(?!y)

符合'x',且後接的不是'y'。'y'為否定'x'存在的意義,後面不行前功盡棄(negated lookahead)。

@@ -187,7 +187,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - x|y + x|y

符合「x」或「y」。

@@ -195,7 +195,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - {n} + {n}

規定符號確切發生的次數,n為正整數

@@ -203,7 +203,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - {n,m} + {n,m}

搜尋條件:n為至少、m為至多,其n、m皆為正整數。若把m設定為0,則為Invalid regular expression。

@@ -211,13 +211,13 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - [xyz] + [xyz] 字元的集合。此格式會匹配中括號內所有字元, including escape sequences。特殊字元,例如點(.) 和米字號(*),在字元集合中不具特殊意義,所以不需轉換。若要設一個字元範圍的集合,可以使用橫線 "-" ,如下例所示:

[a-d] 等同於 [abcd]。會匹配 "brisket" 的 "b" 、"city" 的 'c' ……等。 而/[a-z.]+/ /[\w.]+/ 均可匹配字串 "test.i.ng" 。 - [^xyz] + [^xyz]

bracket中寫入的字元將被否定,匹配非出現在bracket中的符號。
 可用 '-' 來界定字元的範圍。一般直接表達的符號都可以使用這種方式。

@@ -226,11 +226,11 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - [\b] + [\b] 吻合倒退字元 (U+0008). (不會跟 \b 混淆) - \b + \b

吻合文字邊界。A word boundary matches the position where a word character is not followed or preceded by another word-character. Note that a matched word boundary is not included in the match. In other words, the length of a matched word boundary is zero. (Not to be confused with [\b].)

@@ -244,7 +244,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - \B + \B

吻合非文字邊界。This matches a position where the previous and next character are of the same type: Either both must be words, or both must be non-words. The beginning and end of a string are considered non-words.

@@ -252,7 +252,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - \cX + \cX

Where X is a character ranging from A to Z. Matches a control character in a string.

@@ -260,7 +260,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - \d + \d

吻合數字,寫法等同於 [0-9] 。

@@ -268,7 +268,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - \D + \D

吻合非數字,寫法等同於 [^0-9]。

@@ -276,19 +276,19 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - \f + \f Matches a form feed (U+000C). - \n + \n Matches a line feed (U+000A). - \r + \r Matches a carriage return (U+000D). - \s + \s

Matches a single white space character, including space, tab, form feed, line feed. Equivalent to [ \f\n\r\t\v\u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff].

@@ -296,7 +296,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - \S + \S

Matches a single character other than white space. Equivalent to [^ \f\n\r\t\v​\u00a0\​\u1680u180e\u2000​\u2001\u2002​\u2003\u2004​\u2005\u2006​\u2007\u2008​\u2009\u200a​\u2028\u2029​\u202f\u205f​\u3000].

@@ -304,15 +304,15 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - \t + \t Matches a tab (U+0009). - \v + \v Matches a vertical tab (U+000B). - \w + \w

包含數字字母與底線,等同於[A-Za-z0-9_]。

@@ -322,7 +322,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - \W + \W

Matches any non-word character. Equivalent to [^A-Za-z0-9_].

@@ -330,7 +330,7 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - \n + \n

Where n is a positive integer, a back reference to the last substring matching the n parenthetical in the regular expression (counting left parentheses).

@@ -338,15 +338,15 @@ translation_of: Web/JavaScript/Guide/Regular_Expressions - \0 + \0 Matches a NULL (U+0000) character. Do not follow this with another digit, because \0<digits> is an octal escape sequence. Instead use \x00. - \xhh + \xhh Matches the character with the code hh (two hexadecimal digits) - \uhhhh + \uhhhh Matches the character with the code hhhh (four hexadecimal digits). -- cgit v1.2.3-54-g00ecf