案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<body>
3
4
<script type="text/javascript">
5
6
var str="That's hot!";
7
var patt1=/h.t/g;
8
document.write(str.match(patt1));
9
10
</script>
11
12
</body>
13
</html>
14