#!/bin/sh cp syntax.txt syntax.html sam -d syntax.html <<'!' ,s/\&/\&/g ,s//\>/g ,s!== (([^()]|\([^()]*\))*)!≡ `\1`!g ,s!«!`!g ,s!»!`!g ,s! vim$! VIM!g ,s! pcre$! PCRE!g ,s! perl$! PERL!g ,x g/NOT SUPPORTED/ s!^[^ ]+!&! ,s!NOT SUPPORTED!!g ,s!(^[^ ]+) (.*)\n!
`\1`\2
\n!g ,s!.*:$!&!g ,s!^$!
!g ,x v/
/ s!.*!
&
! 1,2c

# RE2 regular expression syntax reference

This page lists the regular expression syntax accepted by RE2.
It also lists syntax accepted by PCRE, PERL, and VIM.
Grayed out expressions are not supported by RE2.
. $a

. w q !