Mailing List Archive


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

Re: [tlug] stupid regex question




> > I'm trying to use this
> > :%s/ +.*/$//g
> 
> Why do you need the '+'? Just this should work:
> 
> :%s/ .*$//g
wouldn't this delete all lines in the file starting with a space rather
than just the current one?

-- 
David Blomberg
AIS, APS, ASE, CCNA, LCP, LCA, Linux+, MCP, MCSA, MCSE, RHCE, Server+
Nihon Libertec
dblomber@example.com


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links