W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <body> <script type="text/javascript"> var str = "Visit W3School.org.cn"; var patt1 = new RegExp("W3S","g"); document.write("The regular expression is: " + patt1.source); </script> </body> </html>