#!/bin/sh cp syntax.txt syntax.wiki sam -d syntax.wiki <<'!' ,s!`!`````!g ,s!== (([^()]|\([^()]*\))*)!≡ `\1`!g ,s!«!`!g ,s!»!`!g ,s! vim$! VIM!g ,s! pcre$! PCRE!g ,s! perl$! PERL!g ,s!(^[^ ]+) (.*)\n!`\1` \2\n!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 #summary I define UNIX as “30 definitions of regular expressions living under one roof.” —Don Knuth GENERATED BY mksyntaxwiki. DO NOT EDIT

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 !