Class: KanjiMaster::RegexConstant

Inherits:
Object
  • Object
show all
Defined in:
lib/kanji_master/regex_constant.rb

Constant Summary collapse

NON_ENGLISH_REGEX =
/[^\u0000-\u007F]$/i
NUMBER_REGEX =
/^[0-9]$/i
KANJI_REGEX =

Japanese Regex

/[\p{Han}]+/
HIRAGANA_REGEX =
/[\p{Hiragana}]+/
KATAKANA_REGEX =
/[\p{Katakana}]+/
ROMAJI_REGEX =
/^[a-zA-Z]/
JP_ZIPCODE_REGEX =
/^\d{3}[-]\d{4}$|^\d{3}[-]\d{2}$|^\d{7}$|^[〒]\d{3}[-]\d{4}$/