emit($1), next if m/\G([^<>&]+/gc; emit($1), next if m/\G(&\w+;)/gc; emit("<"), next if m/\G<(?!<)/gc; # handle potentially valid REs here emit("<"), next if m/\G/gc;