Wednesday, 29 February 2012

searching and matching text

<html>
<body>

<script type="text/javascript">
var str="Hello all";
document.write(str.match("all") + "<br />");
document.write(str.match("All") + "<br />");
document.write(str.match("aLL") + "<br />");
document.write(str.match("ALL"));
</script>

</body>
</html>


No comments:

Post a Comment