Although JavaScript regexes in some cases recognize non-ASCII characters (such as \s ), it is hopelessly inadequate when it comes to \w and \b . If you want them to work with anything other than the ASCII character, you have to either use a different language or install Steve Levithan XRegExp with the Unicode plugin .
By the way, there is an error in your regular expression. You have \b after the extra comma, but it should be in front:
"\\b([az]{2})\\b,?"
I also removed the square brackets; you only need those if the comma had special meaning in regular expressions, which is not. But I suspect that you don't need to match a comma at all; \b should be enough to make sure you are at the end of a word. And if you don't need a comma, you also don't need a capture group:
"\\b[az]{2}\\b"
source share