Regular expression: Difference between revisions

Jump to navigation Jump to search
279 bytes removed ,  13 March 2015
m
Line 44: Line 44:
<tr>
<tr>
<th> 任意次的文字(包含空白),至少出現1次 </th>
<th> 任意次的文字(包含空白),至少出現1次 </th>
<td style="border: 1px #000 solid"> {{kbd | key = <nowiki>.+</nowiki>}} = {{kbd | key = <nowiki>.{1,}</nowiki>}}</td>
<td> {{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 51: Line 51:
<tr>
<tr>
<th> 任意次的空白 </th>
<th> 任意次的空白 </th>
<td style="border: 1px #000 solid"> {{kbd | key = <nowiki>\s+</nowiki>}} </td>
<td> {{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 style="border: 1px #000 solid">任意多個文字(不包含空白) {{kbd | key = <nowiki>[^\s]+</nowiki>}} ={{kbd | key = <nowiki> [^\s]{1,}</nowiki>}}</td>
<td>任意多個文字(不包含空白) {{kbd | key = <nowiki>[^\s]+</nowiki>}} ={{kbd | key = <nowiki> [^\s]{1,}</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>
</tr>
</tr>
<tr>
<tr>
<th> 任意次的英文和數字文字(包含空白) </th>
<th> 任意次的英文和數字文字(包含空白) </th>
<td style="border: 1px #000 solid"> {{kbd | key = <nowiki>[\x00-\x80]+</nowiki>}}</td>
<td> {{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 style="border: 1px #000 solid">非英文或數字的文字,出現任意次<br /> {{kbd | key = <nowiki>[^\x00-\x80]+</nowiki>}}</td>
<td>非英文或數字的文字,出現任意次<br /> {{kbd | key = <nowiki>[^\x00-\x80]+</nowiki>}}</td>
<td>What Does the Fox Say? 12 <span style="background:#C6E3FF">狐狸怎叫</span> 34</td>
<td>What Does the Fox Say? 12 <span style="background:#C6E3FF">狐狸怎叫</span> 34</td>
</tr>
</tr>
<tr>
<tr>
<th> 任意次的英文和數字文字(不包含空白) </th>
<th> 任意次的英文和數字文字(不包含空白) </th>
<td style="border: 1px #000 solid"> {{kbd | key = <nowiki>[\w]+</nowiki>}}</td>
<td> {{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 style="border: 1px #000 solid"></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<th> 任意次的數字(不包含空白) </th>
<th> 任意次的數字(不包含空白) </th>
<td style="border: 1px #000 solid"> {{kbd | key = <nowiki>[\d]+</nowiki>}} = {{kbd | key = <nowiki>[0-9]+</nowiki>}}</td>
<td> {{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 style="border: 1px #000 solid">不包含數字的任意次文字  {{kbd | key = <nowiki>[^\d]+</nowiki>}} </td>
<td>不包含數字的任意次文字  {{kbd | key = <nowiki>[^\d]+</nowiki>}} </td>
<td><span style="background:#C6E3FF">What Does the Fox Say? </span>12 狐狸怎叫 34</td>
<td><span style="background:#C6E3FF">What Does the Fox Say? </span>12 狐狸怎叫 34</td>
</tr>
</tr>

Navigation menu