[CALUG] vim regex challenge
Howard L
how0909 at freeshell.org
Sat Apr 4 20:04:12 EDT 2015
Hey Thanks jim. I was half close, the rules sure are tricky.
Lines may or may not have whitespace at the end.
s/\.\d\{1,3}\.\d\{1,3} .*$// # works on lines with space but NOT on
ones without.
s/\.\d\{1,3}\.\d\{1,3} ?.*$// # does not match
But I can trim all whitespace before doing that command so no big deal.
On 04/04/2015 06:15 PM, Jim Bauer wrote:
> You only need to escape the { not the }.
More information about the CALUG
mailing list