Added multiple matching

Original logic would only return the first instance of the expression.
Now if multiple instances of the same pattern are detected it will
return all of them.