a11y.skipToMainContent
1

Regexテスター

JavaScript の正規表現をライブでテスト — テキストとリスト内のグループでハイライトされているマッチを参照してください.

More options

Common Pattern Library

Click any pattern to load it into the tester:

Quick Regex Cheatsheet

Character Classes
. Any character
\d Digit [0-9]
\w Word char [a-zA-Z0-9_]
\s Whitespace
\D Non-digit
\W Non-word char
Anchors & Boundaries
^ Line start
$ Line end
\b Word boundary
\B Non-boundary
Quantifiers
* 0 or more (greedy)
+ 1 or more (greedy)
? 0 or 1 (optional)
*? 0 or more (lazy)
{n} Exactly n times
{n,m} n to m times
Groups & Lookarounds
(...) Capturing group
(?:...) Non-capturing group
(?=...) Positive lookahead
(?!...) Negative lookahead
Was this tool helpful?
Send output to:
Advertisement

How to use Regex Tester

  1. 正規表現パターンを入力します.
  2. フラグを選択します.
  3. テストテキストを貼り付ける — ハイライトをライブにマッチします.

正規表現テスターとは?

パターン、トグルフラグ(g、i、m、s、u)をタイプし、テストテキストで強調表示されたマッチを素早くビルドしてデバッグします。 キャプチャされたグループは、簡単な検証のために各試合の横に表示されます。

Advertisement

FAQ

レグレックスの風味は?
JavaScriptのregex (ECMAScript)。 Lookaheads, lookbehinds, キャラクタークラス, キャプチャグループ, サポートされているグループ.
安全限界とは?
走査パターンを防止するために、1回の実行あたりの10万試合のキャップ.

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

Advertisement