Hello,
Please help provide us with regular expressions to identify the extra spaces between English and Thai words. Thank you!
Hello,
Please help provide us with regular expressions to identify the extra spaces between English and Thai words. Thank you!
I understand that you need to find segments that have one of more spaces between a Thai character and an English character.
Thai characters are found in the Hex 0x0E00-0x0E7F
range. Therefore you can use the Regex character class [\x0e00-\x0e7f]
to find characters in that range.
This Regex search would find segments that have one or more spaces between a Thai character and an English character:
[\x0e00-\x0e7f] +[a-z]
And this Regex search finds segments that have one or more spaces between an English character and a Thai character:
[a-z] +[\x0e00-\x0e7f]
If what you need is to find segments that have no space between the Thai and the English character, then you would remove the sequence to find spaces, for example:
[\x0e00-\x0e7f][a-z]