I'm not very familiar with Google Custom Search, but it looks like this is a regular expression of JavaScript, right?
If so, the problem is that \b indicates the boundary between the word character and the non-word character, where the word character is an ASCII letter, underscore, or number ( [A-Za-z_0-9] ) .
There is no general general solution; JavaScript simply knows nothing about individual characters outside the ASCII range, so it cannot determine which ones are letters and which are not. But you can write something like this:
/^ΩΩΩ(?:\s.{0,24})?$/
to match any query that is either just the word ΩΩΩ or consists of the word ΩΩΩ followed by a space character and up to 24 characters. I think this should come close to meeting your requirements.
ruakh source share