BUG#487 make regex not-so-greedy. If anchored to end-of-line, several lines are eaten if