added new function

added function to get all matches of a string