fixes to is_regex for amrita