JavaScript regexp exec

04:07 0 Comments A+ a-

<html>
<body>

<script type="text/javascript">
var patt1=new RegExp("e");

document.write(patt1.exec("The best things in life are free"));
</script>

</body>
</html>

Result