案例:JavaScript案例     状态:可编辑再运行    进入横版
x
 
1
<html>
2
<body>
3
4
<script type="text/javascript">
5
var patt1=new RegExp("e");
6
7
document.write(patt1.exec("The best things in life are free"));
8
</script>
9
10
</body>
11
</html>
12

 运行结果 
 北美留学生论坛