Skip to content

Commit d614592

Browse files
committed
POSIX doesn't have [[:word:]]
1 parent ee577d7 commit d614592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regex.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ <h1>Syntax</h1>
9797
<tr><th colspan="6">Character classes</th></tr>
9898
<tr><td>Any character (except newline)</td><td><code>.</code></td><td><code>.</code></td><td><code>.</code></td><td><code>.</code></td><td><code>.</code></td></tr>
9999
<tr><td>Any character (including newline)</td><td class="na"></td><td class="na"></td><td class="na"></td><td class="na"></td><td><code>\_.</code></td></tr>
100-
<tr><td>Match a "word" character (alphanumeric plus <code>_</code>)</td><td><code>\w</code> <code>[[:word:]]</code></td><td><code>\w</code></td><td><code>[[:word:]]</code></td><td><code>[[:word:]]</code></td><td><code>\w</code></td></tr>
100+
<tr><td>Match a "word" character (alphanumeric plus <code>_</code>)</td><td><code>\w</code> <code>[[:word:]]</code></td><td><code>\w</code></td><td><code>\w</code></td><td><code>\w</code></td><td><code>\w</code></td></tr>
101101
<tr><td>Case</td><td><code>[[:upper:]]</code> / <code>[[:lower:]]</code></td><td class="na"></td><td><code>[[:upper:]]</code> / <code>[[:lower:]]</code></td><td><code>[[:upper:]]</code> / <code>[[:lower:]]</code></td><td><code>\u</code> <code>[[:upper:]]</code> / <code>\l</code> <code>[[:lower:]]</code></td></tr>
102102
<tr><td>Match a non-"word" character</td><td><code>\W</code></td><td><code>\W</code></td><td class="na"></td><td class="na"></td><td><code>\W</code></td></tr>
103103
<tr><td>Match a whitespace character (except newline)</td><td class="na"></td><td class="na"></td><td></td><td></td><td><code>\s</code> <code>[[:space:]]</code></td></tr>

0 commit comments

Comments
 (0)