Safer regex/lines