Additional note, according to POSIX regex standard:
"An ordinary character is a BRE that matches itself: any character in the supported character set, except for the BRE special
characters listed in BRE Special Characters.
The interpretation of an ordinary character preceded by an unescaped <backslash> ( '\\' ) is undefined, except
for: [...]"
which means that escaping ordinary characters (like \a) has undefined behaviour, thus I think it should not be matched.
So having EGexecute match 'a' to '\a' is incorrect, and instead we should remove the matching and make sure it's not printed. That would make my patch correct.
Looking forward to feedback.
Best regards,
Tomasz Dziendzielski