parse(str): the greedy flag doesn't really make much sense.