Friday, August 16, 2013

JavaScript regexp exec

<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


No comments: