51help TIY
码:
<html> <body> <script type="text/javascript"> var str = "Visit 51help.tk"; var patt1 = new RegExp("W3S","g"); document.write("The regular expression is: " + patt1.source); </script> </body> </html>
查看结果: