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

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -