g/foobar/a\
  no\
  terminating\
  period\
  character\
.
.=
w
