简单教程
提交运行
代码编辑器:
<script> var patt1=new RegExp("e"); document.write(patt1.exec("The best things in life are free")); </script>
运行结果: