Avoid invalid match around numbers.

Improve the tests on character types.
It is still broken with unicode diacritics or more "unusual" char.
We should rely on ICU to fully fix thoses tests.