(a,b,c)=> //Anonymus function wich takes in 3 arguments
((r=RegExp)(b,"g") //Create a new regex, and set the variable r to it at the same time
a.match(...) // Match the regex with the string
.length //get the length of the array
a.match(r(c,"g")).length; // Do the same with c
* multiply them