14,953
edits
(→快速查表) |
m (→快速查表) |
||
| Line 9: | Line 9: | ||
<table border="1"> | <table border="1"> | ||
<tr style="background-color: #E0E0E0;"> | <tr style="background-color: #E0E0E0;"> | ||
<th> | <th> 文字規則 </th> | ||
<th style="width:256px;"> 包含 sample </th> | <th style="width:256px;"> 包含 sample </th> | ||
<th> | <th> 不包含的文字規則 </th> | ||
<th style="width:256px;"> 不包含 sample</th> | <th style="width:256px;"> 不包含 sample</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <td> 任意一個文字(包含空白) <br /> {{kbd | key = <nowiki>.</nowiki>}} </td> | ||
<td><span style="background:#C6E3FF">W</span>hat Does the Fox Say? 12 狐狸怎叫 34</td> | <td><span style="background:#C6E3FF">W</span>hat Does the Fox Say? 12 狐狸怎叫 34</td> | ||
<td> 任意一個文字(不包含空白) <br />{{kbd | key = <nowiki>[^\s]</nowiki>}} 或 {{kbd | key = <nowiki>([^\s]+)</nowiki>}}</td> | <td> 任意一個文字(不包含空白) <br />{{kbd | key = <nowiki>[^\s]</nowiki>}} 或 {{kbd | key = <nowiki>([^\s]+)</nowiki>}}</td> | ||
| Line 23: | Line 21: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <td> 任意文字(包含空白),出現1次或0次 <br /> {{kbd | key = <nowiki>.?</nowiki>}} = {{kbd | key = <nowiki>.{0,1}</nowiki>}}</td> | ||
<td><span style="background:#C6E3FF">W</span>hat Does the Fox Say? 12 狐狸怎叫 34</td> | <td><span style="background:#C6E3FF">W</span>hat Does the Fox Say? 12 狐狸怎叫 34</td> | ||
<td></td> | <td></td> | ||
| Line 30: | Line 27: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <td> 任意次的多個文字(包含空白) <br /> {{kbd | key = <nowiki>.*</nowiki>}} ={{kbd | key = <nowiki> .{0,}</nowiki>}}</td> | ||
<td><span style="background:#C6E3FF">What Does the Fox Say? 12 狐狸怎叫 34</span></td> | <td><span style="background:#C6E3FF">What Does the Fox Say? 12 狐狸怎叫 34</span></td> | ||
<td></td> | <td></td> | ||
| Line 37: | Line 33: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <td> 任意次的文字(包含空白),至少出現1次 <br /> {{kbd | key = <nowiki>.+</nowiki>}} = {{kbd | key = <nowiki>.{1,}</nowiki>}}</td> | ||
<td><span style="background:#C6E3FF">What Does the Fox Say? 12 狐狸怎叫 34</span></td> | <td><span style="background:#C6E3FF">What Does the Fox Say? 12 狐狸怎叫 34</span></td> | ||
<td></td> | <td></td> | ||
| Line 44: | Line 39: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <td> 任意次的空白 <br /> {{kbd | key = <nowiki>\s+</nowiki>}} </td> | ||
<td>What<span style="background:#C6E3FF"> </span>Does the Fox Say? 12 狐狸怎叫 34</td> | <td>What<span style="background:#C6E3FF"> </span>Does the Fox Say? 12 狐狸怎叫 34</td> | ||
<td>任意多個文字(不包含空白) <br /> {{kbd | key = <nowiki>[^\s]+</nowiki>}} ={{kbd | key = <nowiki> [^\s]{1,}</nowiki>}}</td> | <td>任意多個文字(不包含空白) <br /> {{kbd | key = <nowiki>[^\s]+</nowiki>}} ={{kbd | key = <nowiki> [^\s]{1,}</nowiki>}}</td> | ||
| Line 51: | Line 45: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <td> 任意次的英文和數字文字(包含空白) <br /> {{kbd | key = <nowiki>[\x00-\x80]+</nowiki>}}</td> | ||
<td><span style="background:#C6E3FF">What Does the Fox Say? 12</span> 狐狸怎叫 34</td> | <td><span style="background:#C6E3FF">What Does the Fox Say? 12</span> 狐狸怎叫 34</td> | ||
<td>非英文或數字的文字,出現任意次<br /> {{kbd | key = <nowiki>[^\x00-\x80]+</nowiki>}}</td> | <td>非英文或數字的文字,出現任意次<br /> {{kbd | key = <nowiki>[^\x00-\x80]+</nowiki>}}</td> | ||
| Line 58: | Line 51: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <td> 任意次的英文和數字文字(不包含空白) <br /> {{kbd | key = <nowiki>[\w]+</nowiki>}}</td> | ||
<td><span style="background:#C6E3FF">What</span> Does the Fox Say? 12 狐狸怎叫 34</td> | <td><span style="background:#C6E3FF">What</span> Does the Fox Say? 12 狐狸怎叫 34</td> | ||
<td></td> | <td></td> | ||
| Line 65: | Line 57: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <td> 任意次的數字(不包含空白) <br /> {{kbd | key = <nowiki>[\d]+</nowiki>}} = {{kbd | key = <nowiki>[0-9]+</nowiki>}}</td> | ||
<td>What Does the Fox Say? <span style="background:#C6E3FF">12</span> 狐狸怎叫 34</td> | <td>What Does the Fox Say? <span style="background:#C6E3FF">12</span> 狐狸怎叫 34</td> | ||
<td>不包含數字的任意次文字 {{kbd | key = <nowiki>[^\d]+</nowiki>}} </td> | <td>不包含數字的任意次文字 {{kbd | key = <nowiki>[^\d]+</nowiki>}} </td> | ||