Skip to content

Instantly share code, notes, and snippets.

View devchitect's full-sized avatar
💻
Learning

Dzung Nguyen devchitect

💻
Learning
  • Viet Nam - Earth.
View GitHub Profile
[
{"name": "Afghanistan", "code": "AF"},
{"name": "Åland Islands", "code": "AX"},
{"name": "Albania", "code": "AL"},
{"name": "Algeria", "code": "DZ"},
{"name": "American Samoa", "code": "AS"},
{"name": "AndorrA", "code": "AD"},
{"name": "Angola", "code": "AO"},
{"name": "Anguilla", "code": "AI"},
{"name": "Antarctica", "code": "AQ"},
@devchitect
devchitect / regex-japanese.txt
Created February 6, 2024 10:31
Regular Expression for Japanese
Regex for matching ALL Japanese common & uncommon Kanji (4e00 – 9fcf) ~ The Big Kahuna!
([一-龯]) / ([\u4e00-\u9fcf]) ~ ( '\u****' unicode flag - regex )
Regex for matching Hirgana or Katakana
([ぁ-んァ-ン]) / ([\u3041-\u3093,\u30a1-\u30f3])
? ([ぁ-ゔゞァ-・ヽヾ゛゜ー]) / [\u3041-\u3094,\u309E,\u30A1-\u30FB,\u30FD,\u30FE,\u309B,\u309C,\u0FC]
Regex for matching Non-Hirgana or Non-Katakana
([^ぁ-んァ-ン])