This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// see: http://www.localizingjapan.com/blog/2012/01/20/regular-expressions-for-japanese-text/ | |
val fullWidthHiraganaRegex = "[ぁ-ゟ]".toRegex() | |
val fullWidthKatakanaRegex = "[゠-ヿ]".toRegex() | |
val kanjiRegex = "[㐀-䶵一-鿋豈-頻]".toRegex() | |
val radicalsRegex = "[⺀-⿕]".toRegex() | |
val halfWidthKatakanaRegex = "[ア-ン]".toRegex() | |
val fullWidthAlphaNumRegex = "[!-~]".toRegex() | |
val japSymbolsRegex = "[、-〿]".toRegex() |