.*

Regex Tester

Test regular expressions with live matches and error messages. כלי חינמי ומהיר לשימוש מיידי בלי הרשמה.

0 matches

שימושים נפוצים

  • Test a regular expression on sample text
  • Debug regex errors before using code
  • Preview matches while editing a pattern

Test a regular expression against sample text

A regular expression describes a text pattern for searching, validating, replacing, or extracting data. Enter the pattern without surrounding slash delimiters, choose flags such as global or case-insensitive matching, and paste representative sample text. Live highlighting shows what the expression captures, while syntax errors identify malformed groups, character classes, escapes, or quantifiers before the pattern reaches application code.

A match in one sample does not prove that a regex handles every valid and invalid input. Test empty values, line breaks, Unicode text, very long strings, and near-matches that should be rejected. Regex behavior can differ between JavaScript, Python, .NET, PCRE, and other engines; this tester follows the browser’s JavaScript engine. Avoid patterns with excessive nested backtracking when input may be attacker-controlled, because a seemingly small expression can consume significant CPU on crafted text.

שאלות נפוצות

Should I include /slashes/ around the pattern?

No. Enter the pattern itself and select flags separately in the tool.

Why does the same regex behave differently elsewhere?

Regex engines support different syntax and Unicode rules. This page tests JavaScript regular expressions.

הכלי עזר לך?