jsfiddle-console example
https://github.com/eu81273/jsfiddle-console
HTML
<script src="https://cdn.jsdelivr.net/gh/eu81273/jsfiddle-console/console.js"></script>
JavaScript
let array = ["Neeyal","priyal","Miyal","jiyal","payal"];
arrayRegex = /.yal/;
console.log(array.map(e =>{
e.match(arrayRegex);
}));