not match "bar": (?!bar) in vi: s/(.*)//1/g (note: /1 not $1) in vi, match (.tt or .pm): /./(tt/|pm/)in vi, match not digit [^[:digit:]]