in reply to small help with map function

When you see error's like that, you are missing a '(' in your code. It might help to rewrite the regular expression with the 'x' option, so you can have whitespaces (including newlines) in your code. This makes it easier to see if/what you are missing: