Ruby comes with built in Rexexp matching for various alphabets and character sets.

Here is an example:
/\p{Thai}|\p{Cypriot}|\p{Hangul}/

The above expression will match all Thai, Cypriot and Hangul (Korean) characters.

This functionality comes in handy when building an international site and deciding how to display a user’s given name and surname in the correct order.