Fix null input.
Add filter to input/output.
Greedy match regex.