Fixing truncated regex