@@ -53,7 +53,7 @@ o.kids = [
53
53
} ,
54
54
{
55
55
id :"range" ,
56
- tip :"匹配ASCII码从{{getChar(prev)}}到{{getChar(next)}}的字符 (char code {{prev.code}} to {{next.code}}). {{getInsensitive()}}" ,
56
+ tip :"匹配ASCII码从{{getChar(prev)}}到{{getChar(next)}}的字符 (ASCII码从 {{prev.code}} 到 {{next.code}})。 {{getInsensitive()}}" ,
57
57
example :[ "[g-s]" , "abcdefghijklmnopqrstuvwxyz" ] ,
58
58
desc : "匹配ASCII码在指定范围区间的字符。" ,
59
59
token :"[A-Z]"
@@ -70,7 +70,7 @@ o.kids = [
70
70
id :"dot" ,
71
71
tip :"匹配任何字符{{getDotAll()}}." ,
72
72
desc :"匹配除换行符之外的任何字符。" ,
73
- ext :" Equivalent to <code>[^\\n\\r]</code>." ,
73
+ ext :" 等价于 <code>[^\\n\\r]</code>." ,
74
74
example :[ "." , "glib jocks vex dwarves!" ] ,
75
75
token :"."
76
76
} ,
@@ -91,30 +91,30 @@ o.kids = [
91
91
{
92
92
id :"word" ,
93
93
desc :"匹配字母、数字、下划线。" ,
94
- ext :" Only matches low-ascii characters (no accented or non-roman characters). Equivalent to <code>[A-Za-z0-9_]</code>" ,
94
+ ext :" 只匹配小ASCII码的字符(无声调字母或非罗马英文字符)。 等价于 <code>[A-Za-z0-9_]</code>" ,
95
95
example :[ "\\w" , "bonjour, mon fr\u00E8re" ] ,
96
96
token :"\\w"
97
97
} ,
98
98
{
99
99
id :"notword" ,
100
100
label : "非词匹配" ,
101
101
desc :"匹配非字母、数字、下划线。" ,
102
- ext :" Equivalent to <code>[^A-Za-z0-9_]</code>" ,
102
+ ext :" 等价于 <code>[^A-Za-z0-9_]</code>" ,
103
103
example :[ "\\W" , "bonjour, mon fr\u00E8re" ] ,
104
104
token :"\\W"
105
105
} ,
106
106
{
107
107
id :"digit" ,
108
108
desc :"匹配任意数字 (0-9)." ,
109
- ext :" Equivalent to <code>[0-9]</code>." ,
109
+ ext :" 等价于 <code>[0-9]</code>." ,
110
110
example :[ "\\d" , "+1-(444)-555-1234" ] ,
111
111
token :"\\d"
112
112
} ,
113
113
{
114
114
id :"notdigit" ,
115
115
label : "非数字" ,
116
116
desc :"匹配任意非数字字符 (0-9)." ,
117
- ext :" Equivalent to <code>[^0-9]</code>." ,
117
+ ext :" 等价于 <code>[^0-9]</code>." ,
118
118
example :[ "\\D" , "+1-(444)-555-1234" ] ,
119
119
token :"\\D"
120
120
} ,
@@ -133,26 +133,26 @@ o.kids = [
133
133
} ,
134
134
{
135
135
id :"hwhitespace" ,
136
- label :"horizontal whitespace " ,
137
- desc :"Matches any horizontal whitespace character (spaces, tabs). " ,
136
+ label :"横向空白字符 " ,
137
+ desc :"匹配任意横向空白字符(空格、制表符)。 " ,
138
138
token :"\\h"
139
139
} ,
140
140
{
141
141
id :"nothwhitespace" ,
142
- label : "not horizontal whitespace " ,
143
- desc :"Matches any character that is not a horizontal whitespace character (spaces, tabs). " ,
142
+ label : "非横向空白字符 " ,
143
+ desc :"匹配任意非横向的空白字符(空格、制表符)。 " ,
144
144
token :"\\H"
145
145
} ,
146
146
{
147
147
id :"vwhitespace" ,
148
- label :"vertical whitespace " ,
149
- desc :"Matches any vertical whitespace character (line breaks). " ,
148
+ label :"纵向空白字符 " ,
149
+ desc :"匹配任意纵向的空白字符(换行符)。 " ,
150
150
token :"\\v"
151
151
} ,
152
152
{
153
153
id :"notvwhitespace" ,
154
- label : "not vertical whitespace " ,
155
- desc :"Matches any character that is not a vertical whitespace character (line breaks). " ,
154
+ label : "非纵向空白字符 " ,
155
+ desc :"匹配任意非纵向空白字符(换行符)。 " ,
156
156
token :"\\V"
157
157
} ,
158
158
{
@@ -165,41 +165,41 @@ o.kids = [
165
165
id :"notlinebreak" ,
166
166
label :"非换行符" ,
167
167
desc :"匹配任意非换行符。" ,
168
- ext :" Similar to dot ( <code>.</code>) but is unaffected by the dotall flag (<code>s</code>). " ,
168
+ ext :" 于点相似( <code>.</code>)但是不会受dotall标识 (<code>s</code>)的影响。 " ,
169
169
token :"\\N"
170
170
} ,
171
171
{
172
172
id :"unicodecat" ,
173
- tip :"Matches any character in the '{{getUniCat()}}' unicode category. " ,
174
- label :"unicode category " ,
175
- desc :"Matches a character in the specified unicode category. For example, <code>\\p{Ll}</code> will match any lowercase letter. " ,
176
- ext :"<p>For a list of categories, see the <a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE spec </a>. </p>" +
173
+ tip :"匹配在 '{{getUniCat()}}' unicode分类的任意字符。 " ,
174
+ label :"unicode分类 " ,
175
+ desc :"匹配在指定Unicode分类里的任意字符。例如, <code>\\p{Ll}</code> 会匹配任意小写字符。 " ,
176
+ ext :"<p>Unicode分类的列表见 <a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE 规范 </a>。 </p>" +
177
177
"<p>可以用不同语法使用这个特性:</p><p><code>\\p{L}</code> <code>\\pL</code></p>" ,
178
178
token :"\\p{L}"
179
179
} ,
180
180
{
181
181
id :"notunicodecat" ,
182
- tip :"Matches any character that is not in the '{{getUniCat()}}' unicode category. " ,
183
- label :"not unicode category " ,
184
- desc :"Matches any character that is not in the specified unicode category. " ,
185
- ext :"<p>For a list of categories, see the <a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE spec </a>. </p>" +
182
+ tip :"匹配任意不在 '{{getUniCat()}}' unicode分类里的字符。 " ,
183
+ label :"非uicode分类 " ,
184
+ desc :"匹配任意不在指定Unicode分类里的字符。 " ,
185
+ ext :"<p>Unicode分类的列表见 <a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE 规范 </a>。 </p>" +
186
186
"<p>可以用不同语法使用这个特性:</p><p><code>\\P{L}</code> <code>\\p{^L}</code> <code>\\PL</code></p>" ,
187
187
token :"\\P{L}"
188
188
} ,
189
189
{
190
190
id :"unicodescript" ,
191
- tip :"Matches any character in the '{{value}}' unicode script. " ,
192
- label :"unicode script " ,
193
- desc :"Matches any character in the specified unicode script. For example, <code>\\p{Arabic}</code> will match characters in the Arabic script. " ,
194
- ext :"<p>For a list of scripts, see the <a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE spec </a>. </p>" ,
191
+ tip :"匹配任意在 '{{value}}' 里的Unicode脚本。 " ,
192
+ label :"unicode脚本 " ,
193
+ desc :"匹配任意在指定Unicode脚本里的字符。例如, <code>\\p{Arabic}</code> 会匹配任意阿拉伯脚本。 " ,
194
+ ext :"<p>Unicode脚本的列表见 <a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE 规范 </a>。 </p>" ,
195
195
token :"\\p{Han}"
196
196
} ,
197
197
{
198
198
id :"notunicodescript" ,
199
- tip :"Matches any character that is not in the '{{value}}' unicode script. " ,
200
- label :"not unicode script " ,
201
- desc :"Matches any character that is not in the specified unicode script. " ,
202
- ext :"<p>For a list of scripts, see the <a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE spec </a>. </p>" +
199
+ tip :"匹配任意不在 '{{value}}' 里的Unicode脚本。 " ,
200
+ label :"非unicode脚本 " ,
201
+ desc :"匹配任意不在指定Unicode脚本里的字符。 " ,
202
+ ext :"<p>Unicode脚本的列表见 <a href='http://www.pcre.org/original/doc/html/pcrepattern.html'>PCRE 规范 </a>。 </p>" +
203
203
"<p>可以用不同语法使用这个特性:</p><p><code>\\P{Han}</code> <code>\\p{^Han}</code>" ,
204
204
token :"\\P{Han}"
205
205
}
@@ -209,66 +209,66 @@ o.kids = [
209
209
{
210
210
label :"Anchors" ,
211
211
id :"anchors" ,
212
- desc :"Anchors are unique in that they match a position within a string, not a character. " ,
212
+ desc :"锚定类比较特殊,它匹配位置,而不是字符。 " ,
213
213
kids :[
214
214
{
215
215
id :"bos" ,
216
216
label :"字符串起始" ,
217
217
desc :"匹配字符串的开头" ,
218
- ext :" Unlike <code>^</code>, this is unaffected by the multiline flag (<code>m</code>). This matches a position, not a character. " ,
218
+ ext :" 不像 <code>^</code>,这个不会受多行标识 (<code>m</code>)的影响。这个会匹配到位置,而不是字符。 " ,
219
219
token :"\\A"
220
220
} ,
221
221
{
222
222
id :"eos" ,
223
223
label :"字符串结尾" ,
224
224
desc :"匹配字符串的结尾" ,
225
- ext :" Unlike <code>$</code>, this is unaffected by the multiline flag (<code>m</code>). This matches a position, not a character. " ,
225
+ ext :" 不像 <code>$</code>,这个不会受多行标识 (<code>m</code>)的影响。这个会匹配到位置,而不是字符。 " ,
226
226
token :"\\Z"
227
227
} ,
228
228
{
229
229
id :"abseos" ,
230
230
label :"严格的字符串结尾" ,
231
231
desc :"匹配字符串结尾. 不像 <code>$</code> 或 <code>\\Z</code>, 它不允许尾随换行符。" ,
232
- ext :" This is unaffected by the multiline flag (<code>m</code>). This matches a position, not a character. " ,
232
+ ext :" 这个不会受多行标识 (<code>m</code>)的影响。这个会匹配到位置,而不是字符。 " ,
233
233
token :"\\z"
234
234
} ,
235
235
{
236
236
id :"bof" ,
237
237
label :"开头" ,
238
238
desc :"匹配字符串开头,或者当使用多行标志(<code>m</code>)时,匹配一行的开头。" ,
239
- ext :" This matches a position, not a character. " ,
239
+ ext :" 这个会匹配到位置,而不是字符。 " ,
240
240
example :[ "^\\w+" , "she sells seashells" ] ,
241
241
token :"^"
242
242
} ,
243
243
{
244
244
id :"eof" ,
245
245
label :"结尾" ,
246
246
desc :"匹配字符串结尾,或者当使用多行标志(<code>m</code>)时,匹配一行的结尾。" ,
247
- ext :" This matches a position, not a character. " ,
247
+ ext :" 这个会匹配到位置,而不是字符。 " ,
248
248
example :[ "\\w+$" , "she sells seashells" ] ,
249
249
token :"$"
250
250
} ,
251
251
{
252
252
id :"wordboundary" ,
253
253
label :"词边界" ,
254
254
desc :"匹配一个单词边界,也就是指单词和空格间的位置。" ,
255
- ext :" See the word character class ( <code>\w</code>) for more info. " ,
255
+ ext :" 详情见单词字符类( <code>\w</code>)。 " ,
256
256
example :[ "s\\b" , "she sells seashells" ] ,
257
257
token :"\\b"
258
258
} ,
259
259
{
260
260
id :"notwordboundary" ,
261
261
label : "非词边界" ,
262
262
desc :"匹配非单词边界。" ,
263
- ext :" This matches a position, not a character. " ,
263
+ ext :" 这个会匹配到位置,而不是字符。 " ,
264
264
example :[ "s\\B" , "she sells seashells" ] ,
265
265
token :"\\B"
266
266
} ,
267
267
{
268
268
id :"prevmatchend" ,
269
269
label : "前匹配项结尾" ,
270
270
desc :"匹配前一个匹配的结束位置。" ,
271
- ext :" This matches a position, not a character. " ,
271
+ ext :" 这个会匹配到位置,而不是字符。 " ,
272
272
token :"\\G"
273
273
}
274
274
]
@@ -336,7 +336,7 @@ o.kids = [
336
336
label :"转义序列" ,
337
337
tip : "匹配文字字符串 '{{value}}'." ,
338
338
desc :"所有在<code>\\Q</code>和<code>\\E</code>之间的字符为文字字符串。如果<code>\\E</code>被省略, 它将继续到表达式结尾。" ,
339
- ext :" For example, the expression <code>/\\Q(?.)\\E/</code> will match the string <code>(?.)</code>. " ,
339
+ ext :" 例如,表达式 <code>/\\Q(?.)\\E/</code> 会匹配到字符 <code>(?.)</code>。 " ,
340
340
token :"\\Q...\\E"
341
341
}
342
342
]
0 commit comments