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

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

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

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

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

### 準備

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

### 実現

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

### 参照項目

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dashcomb.com/dashcomb-help-center/tips-and-tricks/hiragana-katakana-only.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
