Searches an input string for all occurrences of a regular expression and returns all the successful matches.