Skip to content

Commit 9719f09

Browse files
authored
Merge pull request #47 from DanArthurGallagher/list-extra-flags
Add documentation for the 3 other RegExp flags
2 parents b6ab855 + 33034ae commit 9719f09

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

application.css

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ a:hover {
172172
margin-bottom: 20px;
173173
}
174174

175+
#quick_reference th,
175176
#quick_reference td {
176177
padding-right: 15px;
177178
line-height:1.5em;
@@ -185,12 +186,6 @@ a:hover {
185186
width:60px;
186187
}
187188

188-
#quick_reference a {
189-
position: absolute;
190-
top: 20px;
191-
right: 20px;
192-
}
193-
194189
input, textarea, #results, #groups {
195190
margin-bottom: 20px;
196191
background-color: white;
@@ -280,10 +275,6 @@ input, textarea, #results, #groups {
280275
padding-left: 30px;
281276
}
282277

283-
#shares li {
284-
285-
}
286-
287278
#shares a {
288279
color: #444;
289280
font-size: 14px;

index.html

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,33 @@ <h2>Share Link:</h2>
7575
</div>
7676

7777
<div id="quick_reference">
78-
<div class="scrollable">
79-
<h2>Modifiers:</h2>
78+
<div class="scrollable">
8079
<table>
80+
<caption><h2>Flags:</h2></caption>
8181
<tr>
82-
<td class="regex">i</td>
82+
<th class="regex">g</th>
83+
<td>Perform a global match</td>
84+
</tr>
85+
<tr>
86+
<th class="regex">i</th>
8387
<td>Perform case-insensitive matching</td>
8488
</tr>
8589
<tr>
86-
<td class="regex">g</td>
87-
<td>Perform a global match</td>
90+
<th class="regex">m</th>
91+
<td>Treat beginning and end characters (^ and $) as working over multiple lines</td>
92+
</tr>
93+
<tr>
94+
<th class="regex">u</th>
95+
<td>
96+
Treat the pattern as a series of Unicode code points
97+
(<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#Regular_expression_and_Unicode_characters" rel="external noopener">
98+
See the MDN docs
99+
</a>)
100+
</td>
101+
</tr>
102+
<tr>
103+
<th class="regex">y</th>
104+
<td>Sticky; treat the pattern after a match as a separate pattern</td>
88105
</tr>
89106
</table>
90107
<h2>Brackets:</h2>

0 commit comments

Comments
 (0)