challenge : https://www.codewars.com/kata/583203e6eb35d7980400002a

I’m wondering if anyone know how to solve this challenge with regular expressions? because in the challenge, it has a “regular expression” tag attached to it.

i passed this with my code :

```
//return the total number of smiling faces in the array
function countSmileys(arr) {
if ( arr.length === 0 ) {
return 0;
}
let incr = 0;
let validSmileys = [":)",";)",":D",";D",":-D",":~D",":-)",":~)",";~D",";~)",";-D",";-)"]
for (let face of arr) {
if (validSmileys.includes(face)) {
incr++;
}
}
return incr;
}
countSmileys([";~D" , ":o>" , ";~)" , ":)" , ";~>" , ":(" , ";D"])
// : or ;
// - or ~
// ) or D.
```