iTranslated by AI
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.
- Regular expressions - JavaScript | MDN
Softel labs
- Regular Expression Replacement Checker (JavaScript version) | 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...
- Summary of Regular Expression Checking Tools - Qiita
Discussion