Add examples for regex flags (#1716)

* Adds examples for regex flags in the flag creation form
This commit is contained in:
Kevin Chung
2020-11-14 19:02:28 -05:00
committed by GitHub
parent 17db97495e
commit 048632788d

View File

@@ -11,4 +11,27 @@
<option value="case_insensitive">Case Insensitive</option> <option value="case_insensitive">Case Insensitive</option>
</select> </select>
</div> </div>
<div class="form-group">
<label>Examples</label>
<table class="table small">
<thead>
<tr>
<th scope="col">Description</th>
<th scope="col">Flag</th>
</tr>
</thead>
<tr>
<td>Match any content inside of flag{}:</td>
<td><code>flag{.*}</code></td>
</tr>
<tr>
<td>Match numeric flags:</td>
<td><code>flag{(\d+)}</code></td>
</tr>
<tr>
<td>Accept flags with or without the flag format prefix:</td>
<td><code>(flag{)?this_is_a_flag(})?</code></td>
</tr>
</table>
</div>
<input type="hidden" name="type" value="regex"> <input type="hidden" name="type" value="regex">