Re: Pattern matching problem

2011-04-11 Thread Ben Fritz
On Apr 11, 3:05 am, "Benjamin R. Haskell" wrote: > On Mon, 11 Apr 2011, howard Schwartz wrote: > > Hi, > > > A quick puzzle: when I have words separated by 2 spaces like this: > > > firstword  secondword > > > vim does not seem to match the double spages with a pattern like these: > > > /  /    

Re: Pattern matching problem

2011-04-11 Thread Tim Chase
On 04/11/2011 03:05 AM, Benjamin R. Haskell wrote: On Mon, 11 Apr 2011, howard Schwartz wrote: More seriously, I trying to do a substitute and replace on lines like this: DEBIT,03/25/2011,"ATT First Payment PPD ID: 4031004",-42.34 I want to replace it with a line like

Re: Pattern matching problem

2011-04-11 Thread Benjamin R. Haskell
On Mon, 11 Apr 2011, howard Schwartz wrote: Hi, A quick puzzle: when I have words separated by 2 spaces like this: firstword secondword vim does not seem to match the double spages with a pattern like these: / /or/\s\s/ Yet when there are 3 spaces between words, patterns like /\s\s\s/

Pattern matching problem

2011-04-11 Thread howard Schwartz
Hi, A quick puzzle: when I have words separated by 2 spaces like this: firstword secondword vim does not seem to match the double spages with a pattern like these: / /or/\s\s/ Yet when there are 3 spaces between words, patterns like /\s\s\s/ match fine. Can anyone explain? More serious