Issue #39: Fixes regex handling and does not manipulate user's regexes.