A small thing about vi regex
Well i was trying to remove all the spaces in the lines that are present before text.
So i thought to use vi's command mode and run
But this doesnt work ,then i found out (http://www.geocities.com/volontir/) that in vi the way to specify the '+' quantifier is to use,
'\+'.So it turns out the way to do it is .
Also '?' quantifier is '\='.
So i thought to use vi's command mode and run
:%s/^\s+//
But this doesnt work ,then i found out (http://www.geocities.com/volontir/) that in vi the way to specify the '+' quantifier is to use,
'\+'.So it turns out the way to do it is .
:%s/^\s\+//
Also '?' quantifier is '\='.
0 Comments:
Post a Comment
<< Home