I think it will depend on the language. There are a few non-latin languages where a simple word search likely won't be enough for a regex to properly apply.