<!DOCTYPE html>
<html lang="en-US">
<body>
<p>Click the button to do a search for the number "3" in a string.</p>
<button onclick="myFunction()">Click me</button>
<p id="point"></p>
<script>
function myFunction(){
var str = "0123456789";
var pattern = /[3]/g;
var result = str.match(pattern);
document.getElementById("point").innerHTML = result;
}
</script> </body>
</html>