3 cp syntax.txt syntax.wiki
4 sam
-d syntax.wiki
<<'!'
6 ,s
!== (([^
()]|\
([^
()]*\
))*)!≡
`\1`!g
9 ,s
! vim$
! <font size
="1">VIM
</font
>!g
10 ,s
! pcre$
! <font size
="1">PCRE
</font
>!g
11 ,s
! perl$
! <font size
="1">PERL
</font
>!g
12 ,s
!(^
[^
]+) (.
*)\n!`\1` \
2\n!g
13 ,x g
/NOT SUPPORTED
/ s
!^
[^
]+!<font color
="#808080">&</font
>!
14 ,s
!NOT SUPPORTED
!<font size
="1">(&)</font
>!g
15 ,s
!(^
[^
]+) (.
*)\n!<tr><td
>\
1</td
><td
>\
2</td
></tr>\n!g
17 ,s
!^$
!<tr><td
></td
></tr>!g
18 ,x v
/<tr>/ s
!.
*!<tr><td colspan
="2">&</td
></tr>!
20 #summary I define UNIX as “30 definitions of regular expressions living under one roof.” —Don Knuth
23 GENERATED BY mksyntaxwiki. DO NOT EDIT
26 <table border
="0" cellpadding
="2" cellspacing
="2">
27 <tr><td colspan
="2">This page lists the regular expression syntax accepted by RE2.
</td
></tr>
28 <tr><td colspan
="2">It also lists syntax accepted by PCRE
, PERL
, and VIM.
</td
></tr>
29 <tr><td colspan
="2">Grayed out expressions are not supported by RE2.
</td
></tr>