I blame sed for not making non-greedy substitutions easy