updated regex.js Added basic validation for ensuring all modifiers work with the same regex engine