2 # Basic Regular Expression
7 # skip those option specific to regexec/regcomp
8 $2 ~ /[msnr$#p^]/ { next; }
14 #{ printf ("<%s> <%s> <%s> <%s>\n", $1, $2, $3, $4); }
22 # it means empty lines
25 gsub (/\\\'/, "\\\'\'");
27 if (index ($2, "C") != 0)
29 if (index ($2, "b") != 0)
30 printf ("2@%s@%s\n", $1, $3);
35 if (index ($2, "b") != 0)
36 printf ("1@%s@%s\n", $1, $3);
43 # skip those magic cookies can't rely on echo to gnerate them
44 if (match($3, /[NSTZ]/))
48 # it means empty lines
51 gsub (/\\\'/, "\\\'\'");
53 if (index ($2, "b") != 0)
54 printf ("0@%s@%s\n", $1, $3);