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

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

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

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