Implemented regex VM.