ntones apps
|
リクエスト

正規表現ビルダーRegex Builder

カテゴリとオプションを選ぶだけで正規表現を自動生成。コピーしてすぐ実装に使えます。Auto-generate regex by selecting categories and options. Copy and use it right away.

ブラウザ完結(サーバー非送信)Browser-only (no server upload)

カテゴリを選択Select category

使い方・ユースケース How to Use & Use Cases

カテゴリ(メール・電話番号・郵便番号など)を選び、オプションをクリックして条件を指定します。パターンが自動生成され、テスト欄でマッチ確認後にコピーしてコードへ貼り付けられます。 Pick a category (email, phone, postal code, etc.), click options to set conditions, then test the auto-generated pattern and copy it into your code.

フォームの入力チェック用正規表現を素早く用意したいとき、正規表現の書き方に不慣れでもパターンが欲しいとき、既存コードのバリデーションを電話番号や日付形式向けに組み立てたいときなどに便利です。 Handy for form validation patterns without writing regex from scratch, or building checks for phone numbers, dates, and similar formats in your app.

よくある質問FAQ

正規表現の知識がなくても使えますか?Can I use this without knowing regex?

使えます。カテゴリとオプションを選択するだけでパターンが自動生成されます。生成されたパターンはコピーしてそのままコードに貼り付けられます。Yes. Just select a category and options — the pattern is generated automatically.

生成されるのはどの言語の正規表現ですか?Which language's regex is generated?

JavaScriptのRegExp形式で生成・テストしています。Python・Ruby・PHPなど多くの言語でも基本パターン(メール・郵便番号・日付など)はそのまま使えます。ただし言語によって動作が異なる場合があります。詳しくは次のFAQをご覧ください。JavaScript RegExp format. Most basic patterns also work in Python, Ruby, PHP, and other languages.

JavaScript以外の言語でそのまま使えますか?Does it work in languages other than JavaScript?

カテゴリによって異なります。メール・郵便番号・日付・数字・URL・カタカナ・ひらがな・漢字・英数字はPython・Ruby・PHPなど主要言語でほぼそのまま使えます。電話番号パターンは「否定先読み(?!)」という記法を使っており、GoとRustでは対応していないため動作しません。使用言語がGoまたはRustの場合は電話番号パターンを手動で書き直す必要があります。It depends on the category. Phone number patterns use negative lookahead which is not supported in Go or Rust.

正規表現テスターとの違いは何ですか?What is the difference from the Regex Tester?

正規表現テスターは自分でパターンを書いてテストするツールです。正規表現ビルダーはパターンを知らなくてもクリックだけで生成できるツールです。生成したパターンをテスターに貼り付けて細かく調整することもできます。The Tester is for writing and testing your own patterns. The Builder generates patterns from your selections automatically.

生成したパターンをカスタマイズできますか?Can I customize the generated pattern?

生成されたパターンをコピーして正規表現テスターや任意のエディタで自由に編集できます。Yes. Copy the pattern and edit it freely in the regex tester or any editor.

テスト欄で確認してからコピーできますか?Can I test the pattern before copying?

できます。パターン生成後、テスト欄に文字列を入力するとリアルタイムでマッチするか確認できます。Yes. Enter a string in the test field to verify matches in real time.

完全一致と部分一致の違いは何ですか?What is the difference between full match and partial match?

完全一致は文字列全体がパターンに合致する場合のみマッチします。たとえばフォームの入力値が正しい形式かチェックするときに使います。部分一致は文字列の一部にパターンが含まれればマッチします。メール本文や長いテキストの中から特定のパターンを探すときに使います。Full match requires the entire string to match. Partial match finds the pattern anywhere in the string.

ページを閉じれば、端末内のデータは自動的に消去されます。契約書や顧客資料など、慎重に扱うデータも安心してご利用ください。When you close the page, data on your device is cleared automatically. Safe for sensitive files such as contracts and client documents.

関連ツールRelated Tools