> For the complete documentation index, see [llms.txt](https://docs.dashcomb.com/dashcomb-help-center/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dashcomb.com/dashcomb-help-center/tips-and-tricks/hiragana-katakana-only.md).

# ひらがなのみ・カタカナのみのバリデーション

### よく使うひらがなのみ、カタカナのみのバリデーションは実に難しい

検索してみると、ひらがなのみの検証について、たくさんの記事があることがわかります。管理画面を作る際に、このような条件制約をつけるのは当たり前なのですが、未だに頭を悩ませている人も多くいます。

DashcombはUnicode基準のひらがなとカタカナのレンジを使っています。

[Unicode Hiranga定義](https://www.unicode.org/charts/PDF/U3040.pdf) [Unicode Katakana定義](https://www.unicode.org/charts/PDF/U30A0.pdf)

### 準備

* Dashcombの[View](/dashcomb-help-center/ide/layout-component.md)や[Section](/dashcomb-help-center/ide/layout-component.md)をドラッグ＆ドロップし、バリデーション用の画面を作成しておきます。

### 実現

[Unicode Hiranga定義](https://www.unicode.org/charts/PDF/U3040.pdf)

### 参照項目

[Unicode Katakana定義](https://www.unicode.org/charts/PDF/U30A0.pdf)
