iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🥨

2 Recommended JavaScript Regex Checkers

に公開

When I was working with regular expressions in JavaScript, I had the idea to create a checker for my own use. However, after looking around, I found that many already exist, so I would like to introduce two sites that I found particularly easy to use among those I tried.

regex101

  • regex101 | Online regex tester and debugger: PHP, PCRE, Python, Golang and JavaScript

A regular expression checker that supports PHP, Python, and Golang in addition to JavaScript.
Since ES2018, JavaScript has added the dotAll option (the s in /hoge/s), and this was the only checker I found that supported the dotAll option.
It is also very convenient as it displays detailed matching information.

For more details on the dotAll option, please refer to the following:

If the s ("dotAll") flag is set to true, it also matches line break characters.

Softel labs

Although it does not support the dotAll option, it was easy to use with a straightforward interface.

References

Actually, both of them were listed here...

Discussion