DevTools

正規表現テスター

Ali Hub DevToolsで正規表現テスターを使用できます。入力確認、結果、プライバシー情報、文書化された制限を明確に示します。

主な入力

保存領域は、ツールがブラウザー内のローカルでバージョン管理され、範囲が限定され、消去可能で、機密でないデータを明示した場合にのみ使用されます。

このツールをインストール

すぐに使えるよう、このツールを端末に追加します。

正規表現テスター

Test regular expressions against sample text online while reviewing matches, groups, flags, and engine differences. 日本語 locale.

Make HTML structure easier to inspect

This tool tests a regular expression against sample text and displays matches or captures. It helps you explore pattern be...

Formatting is not HTML validation

A regular expression describes text patterns using literals, character classes, quantifiers, groups, anchors, alternation,...

How to format HTML

  1. Enter a pattern, choose flags or engine options, add representative text, and inspect matches and capture groups. Include ...
  2. Enter a pattern, choose flags or engine options, add representative text, and inspect matches and capture groups. Include ...

Formatting method

  • Read markup structure

    The tester compiles the pattern with selected options, scans the sample text, and reports matches, positions, and groups. ...

  • Apply indentation

    The tester compiles the pattern with selected options, scans the sample text, and reports matches, positions, and groups. ...

  • Preserve content

    The tester compiles the pattern with selected options, scans the sample text, and reports matches, positions, and groups. ...

Exact parser recovery, optional-tag handling, whitespace policy, embedded-language behavior, and error wording should be c...

Read the formatted result

A useful result shows the exact matched span, capture values, flags, and engine assumptions. Check whether a match is part...

よくある間違い

Common mistakes include forgetting anchors, using a dot for every character, misunderstanding greedy quantifiers, mixing e...

Common mistakes include forgetting anchors, using a dot for every character, misunderstanding greedy quantifiers, mixing e...

制限と特殊なケース

The tester cannot guarantee production engine, performance, denial-of-service resistance, locale behavior, or full input c...

The tester cannot guarantee production engine, performance, denial-of-service resistance, locale behavior, or full input c...

Examples

Regex Tester online — 1

What does a regex tester do?

Enter a pattern, choose flags or engine options, add representative text, and inspect matches and capture groups. Include ...

A useful result shows the exact matched span, capture values, flags, and engine assumptions. Check whether a match is part...

Regex Tester online — 2

Which regex engine is used?

Enter a pattern, choose flags or engine options, add representative text, and inspect matches and capture groups. Include ...

A useful result shows the exact matched span, capture values, flags, and engine assumptions. Check whether a match is part...

Regex Tester online — 3

What are flags?

Enter a pattern, choose flags or engine options, add representative text, and inspect matches and capture groups. Include ...

A useful result shows the exact matched span, capture values, flags, and engine assumptions. Check whether a match is part...

Regex Tester online — 4

Why does a pattern match partially?

Enter a pattern, choose flags or engine options, add representative text, and inspect matches and capture groups. Include ...

A useful result shows the exact matched span, capture values, flags, and engine assumptions. Check whether a match is part...

Regex Tester online — 5

How do capture groups work?

Enter a pattern, choose flags or engine options, add representative text, and inspect matches and capture groups. Include ...

A useful result shows the exact matched span, capture values, flags, and engine assumptions. Check whether a match is part...

Regex Tester online — 6

Can regex validate an email?

Enter a pattern, choose flags or engine options, add representative text, and inspect matches and capture groups. Include ...

A useful result shows the exact matched span, capture values, flags, and engine assumptions. Check whether a match is part...

Frequently asked questions

What does a regex tester do?

Use the tester to inspect pattern behavior, then confirm syntax, performance, Unicode rules, and security in the actual en...

Which regex engine is used?

Use the tester to inspect pattern behavior, then confirm syntax, performance, Unicode rules, and security in the actual en...

What are flags?

Use the tester to inspect pattern behavior, then confirm syntax, performance, Unicode rules, and security in the actual en...

Why does a pattern match partially?

Use the tester to inspect pattern behavior, then confirm syntax, performance, Unicode rules, and security in the actual en...

How do capture groups work?

Use the tester to inspect pattern behavior, then confirm syntax, performance, Unicode rules, and security in the actual en...

Can regex validate an email?

Use the tester to inspect pattern behavior, then confirm syntax, performance, Unicode rules, and security in the actual en...

Are complex patterns safe?

Use the tester to inspect pattern behavior, then confirm syntax, performance, Unicode rules, and security in the actual en...

How do I test Unicode?

Use the tester to inspect pattern behavior, then confirm syntax, performance, Unicode rules, and security in the actual en...

References