matchRegex now works on plain char*