How this regex tester works
The pattern you type is compiled with new RegExp(pattern, flags) by your browser's JavaScript engine and run against your test text on every change. The same engine family powers Node.js, Deno, Bun and front-end code, so a pattern that behaves here behaves the same in your JavaScript or TypeScript project.
Every match is highlighted in place, up to 500 matches. Zero-length matches, such as those from ^ or \b, show as a thin marker and the tester steps past them so a pattern like a* never loops forever. If the pattern has groups, a table lists the full match and each group for the first 50 matches, with named groups labelled by name. When the pattern is invalid, you see the engine's own error message, the same one your code would throw.
Because you type the pattern without surrounding slashes, you do not need to escape forward slashes here. Inside a JavaScript regex literal such as /https?:\/\// you do.