0

I have a CSV:

21-Aug-96,S,S,S,S,S,N

The S are supposed to be true, and the N are supposed to be false.

I'm trying this command con MacVim:

:%s//^[S]$//tue/g

But it throws a "trailing characters" error. What am I doing wrong?

Oscar Swanros
  • 19,767
  • 5
  • 32
  • 48

1 Answers1

1

Your regular expression is completely incorrect.

You have "^" which looks for beginning of a line

And "$" which looks for the end of line.

Try:

:%s/,S/,true/g
:%s/,N/,false/g
rurouni88
  • 1,165
  • 5
  • 10