本文へスキップ

正規表現テスター

開発者ツール

正規表現をテスト、マッチ箇所をハイライト表示

回答概要

Regex Tester: Test regular expressions with match highlighting. Regex Tester uses standard developer formulas to compute accurate results instantly.

よく使うプリセット:

正規表現

//g
g=グローバル i=大文字小文字無視 m=複数行 s=ドットが改行にマッチ

テストテキスト

マッチング数2
最初の位置5
マークg
エンジンJavaScript

ハイライト結果

main 13812345678, backup 19987654321

マッチング明細

#マッチング内容位置グループ
1138123456785—
21998765432125—

文法早見表

記号意味
\d \w \sdigit / word / whitespace
.any char except newline
* + ?0+ / 1+ / 0 or 1 times
{n,m}repeat n to m times
[abc] [^abc]set / negated set
^ $ \bstart / end / word boundary
( ) (?: )capture / non-capture group
a|balternation (or)

💡 ネストされた量指定子(例(a+)+)による壊滅的なバックトラッキングに注意——悪意のある入力でページがフリーズする可能性がある。確定的で境界が明確な正規表現を書くようにしてください。

このツールはお役に立ちましたか?

使い方

  1. Paste or type content: drop code/text into the Regex Tester or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

主なポイント

  • Regex Tester is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: Test regular expressions with match highlighting.
  • Results come with formulas and reference tables so you can verify every number.

原理と計算式

Regex Tester formula

Regex Tester uses standard developer formulas to compute accurate results instantly.

よくある質問

How do I use the Regex Tester?
Open the page and fill in the input fields — results update automatically. Test regular expressions with match highlighting.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

関連ツール

関連ガイド

出典と更新情報

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

最終更新日:

このページの計算式と内容はYiJianSuanチームにより確認されています。学習参考用であり、実際の業務では公式の発表を優先してください。

内容はYiJianSuan編集チームにより維持管理され、定期的に確認されています。更新・審査プロセスはこちら編集ポリシー.

このページを引用: YiJianSuan. 正規表現テスター[EB/OL]. https://www.yijiansuan.com/ja/c/dev/regex

本ツールが提供する結果は参考用であり、専門的な助言を構成するものではありません。公式の計算結果を優先してください。