find_all_positions(
input,pattern) ->positions
Find all start/end positions of a pattern in a string
Finds all occurrences of pattern in input and returns an array of
{start, end} position pairs for each match. Returns nil if input or
pattern is nil.