Find all occurrences of patterns in a string

Sign in to test your solution.