正規表現テスターRegex Tester
正規表現パターンをリアルタイムでテスト。マッチ箇所をハイライト表示・結果一覧も確認。Test regex patterns in real time. Highlights matches and shows a full match list.
お気に入りについて About favorites
この端末のブラウザにのみ保存され、サーバーには送信されません。 Saved on this device only—never sent to our servers.
検索オプションSearch options
マッチ結果Matches
使い方・ユースケース How to Use & Use Cases
正規表現パターンとテスト文字列を入力すると、マッチ箇所がリアルタイムでハイライト表示されます。フラグ(全部見つける・大文字小文字無視など)を切り替えて挙動を確認し、結果一覧も確認できます。 Enter a regex pattern and test string to see matches highlighted in real time. Toggle flags (match all, case insensitive, etc.) and review the match list.
実装前に正規表現の動作を確認したいとき、ログやCSVから特定パターンを抽出する式を試したいとき、正規表現ビルダーで作ったパターンを微調整するときなど、開発・デバッグで使えます。 Use it to verify regex before shipping, test extraction patterns on logs or CSV data, or fine-tune patterns from the Regex Builder during development.
よくある質問FAQ
JavaScriptの正規表現と同じですか?Is this the same as JavaScript regex?
はい。ブラウザのJavaScript(RegExp)をそのまま使用しているため、JavaScriptと完全に同じ動作です。PythonやGoなど他の言語では挙動が異なる場合があります。Yes. This tool uses JavaScript's RegExp directly, so behavior matches JavaScript exactly.
検索オプション(フラグ)の意味を教えてくださいWhat do the search flags mean?
「全部見つける」をオンにすると、テキスト中のすべての一致箇所を見つけます。オフにすると最初の1件だけです。「大文字・小文字を区別しない」をオンにするとABCとabcを同じ文字として扱います。「複数行モード」は複数行のテキストで各行ごとに先頭・末尾の判定をしたいときに使います。「改行もマッチ対象」は「.」(任意の1文字)を改行にもマッチさせたいときに使います。Match All finds every occurrence. Case Insensitive treats uppercase and lowercase as the same. Multiline matches ^ and $ at each line. Dot All makes . match newlines too.
パターンが間違っているときはどう表示されますか?How are errors shown when the pattern is wrong?
パターン入力欄の直下に赤いエラーメッセージが表示されます。入力するたびにリアルタイムで検証されるため、どこが間違っているかすぐに確認できます。A red error message appears below the pattern input field in real time.
「^」や「$」は何の意味ですか?What do ^ and $ mean?
「^」は文字列の先頭、「$」は文字列の末尾を表します。例えば「^\d+$」は「数字だけからなる文字列」にマッチします。どちらかを省略すると部分一致になります。^ matches the start of a string (or line in multiline mode), and $ matches the end. Use them together for exact matching.
正規表現を一から書けなくても使えますか?Can I use this without writing regex from scratch?
パターンを一から書く必要がある場合は、正規表現ビルダーでカテゴリを選ぶだけでパターンを自動生成できます。生成したパターンをこのテスターに貼り付けて確認・調整することもできます。Yes. Use the Regex Builder to generate a pattern automatically, then paste it here to test.
ページを閉じれば、端末内のデータは自動的に消去されます。契約書や顧客資料など、慎重に扱うデータも安心してご利用ください。When you close the page, data on your device is cleared automatically. Safe for sensitive files such as contracts and client documents.