If I had the following code:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>4.9</title>
</head>

<body>
<script type="text/javascript">
function e_names(my_names){
//create array list of names, return number of names in array than end in either
//ie or y

var my_array_names=new Array("Ryan Butler", "Pat Lonie", "Michell Lay");
}

</script>

</body>
</html>
I'm trying to find a way to call and check to see whether the array of names contains an "ie" or "y" which it will since I created my array to have those. I'm guessing that maybe I'll be using argument.length to check the number?? I'm thinking it needs to be a regular expression to check which ones end in "ie" or "y."

If anyone could shed some light somewhere it would be great.