rudimentary handling of regex literals, including a basic success test