regex.line

Read any regex piece by piece, and test it on your own text.

Made by musaabk.devالعربية

In short

Step by step

    Settings: the letters after the last /

      Other settings you can add

        Test text

        Each line

          Text it caught

          The exact pieces of text the regex found. Parts in brackets ( ) are listed one by one, such as the year, month and day of a date.

            Questions

            Are the matches the same as in my code?

            For JavaScript, yes: the matching runs on your browser's own RegExp engine. The parser only explains the pattern; it never decides what matches.

            What does Can freeze mean?

            A group that repeats something that already repeats, like (a+)+, can try exponentially many ways to match text that almost fits: each extra character doubles the work. This is called catastrophic backtracking, and it can hang a page or a server. The tool stops the test after one second and tells you.

            Why does the date pattern accept 2026-02-30?

            A regex checks the shape of text, not the calendar. It can say the month is 01 to 12 and the day 01 to 31, but not that February has 28 or 29 days. Check real dates in code after the regex.

            Do you track the regex and text I paste?

            No. The pattern is explained and your test text is matched inside this browser tab, and neither is sent anywhere. The pattern is kept in the page link so you can share it; the test text is not.