Vim Regex Replacing Addition Symbols Followed By Whitespace -
i'm wanting use regex inside vim replaces matches of + '<nonwhitespaceanychar> + '(space).
note :- (space) means blank space
i've tried
%s/\+\s'[^s]/\+\s'\s/g but fails on plus sign. i've tried double backslash, misplaced +, \+ follows nothing error.
example match: + 'n example replace + ' n example nonmatch: + ' n
try below regex
:%s/+\s*'/+'/g
Comments
Post a Comment