What is wrong in this Perl regex in OSX?
It seems like you might have cut-n-pasted the command in to the shell in some odd way - or you manually entered it in the wrong way.

Try again, and this time pay attention to the quote characters. You need to use the right apostrophes. Make sure you don't use backticks or similar.