测试JavaScript正则表达式的工具,只要输入正则的内容就可以输出匹配结果等等。如果正则表达式不改变,可以观察到记录的lastIndex等等属性、并且能观察到属性的改变过程。

The regular and matching results will be automatically colored, and if there are matching results, they will be alternately colored in yellow and blue。

本工具附带一些常用的正则表达式,并提供了一个替换功能,欢迎大家使用。

测试匹配
替换