Friday, August 16, 2013

JavaScript regexp exec 02

<html>
<body>

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

do
{
result=patt1.exec("The best things in life are free");
document.write(result);
}
while (result!=null)
</script>

</body>
</html>

 Result


No comments: