Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] stupid regex question




Sorry for such a brain dead question...

I write enough regexs to give me headache but not enough to become
really excellent.

In vi I want to delete from and including the first space to the end of
line, eg

USERNAME  VARCHAR(32)


I'm trying to use this
:%s/ +.*/$//g

but it's not matching. The first bit one or more spaces isn't matching.


-- 
Brett Robson 
Systems Administrator
GOL 
http://www.gol.com
Phone: 03-3239-6856    International: +81-3-3239-6856


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links