Skip to content

Commit 035532c

Browse files
committed
Add "notes" section
1 parent 65654b2 commit 035532c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

regex.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,13 @@ <h1>Programs</h1>
193193
<tr><td>sed</td><td>BRE, <code>-E</code> switches to ERE</td><td></td></tr>
194194
</tbody>
195195
</table>
196+
</section>
197+
198+
<section id="notes" class="group">
199+
<h1>Notes</h1>
200+
<ul>
201+
<li>BRE comes in two flavors: basic REs and enhanced basic REs. Some features like <code>\+</code> are only available in programs using enhanced basic REs so you should not rely on them. For example, grep and sed on BSD or MacOS do not use enhanced basic REs, so you are better off using the portable <code>xx*</code> or <code>x\{1,\}</code> constructs instead of <code>x\+</code>.</li>
202+
</ul>
196203
</section>
197204

198205
</div>
@@ -222,6 +229,9 @@ <h1>Programs</h1>
222229
<li><a href="#programs-cmdline">Command-line tools</a></li>
223230
</ul>
224231
</li>
232+
<li>
233+
<a href="#notes">Notes</a>
234+
</li>
225235
</ul>
226236
</nav>
227237

0 commit comments

Comments
 (0)