Grep messages out by a regexp pattern