Finding a substring within a string : Regular Expressions « Development « JavaScript DHTML
- JavaScript DHTML
- Development
- Regular Expressions
Finding a substring within a string
<html>
<head>
<title>Finding a substring within a string</title>
<script type="text/javascript">
var a = "This is a test.";
var b = a.indexOf("is");
document.write(b);
</script>
</head>
<body>
</body>
</html>
Related examples in the same category