eregex.vim
eregex.vim copied to clipboard
Implement \b conversion
It seems to me that \(\(\_^\|\_$\|\W\)\)\@= should work as replacement, no?
Sorry, \(\(\(\_^\|\_$\|\W\)\)\@<=\|\(\(\_^\|\_$\|\W\)\)\@=\), but \(\<\|\>\) also works
I also found missing \b making target specific keyword (like new MyClass() instead of myNewVariable extremely limiting. Hope it get resolved!
\(\<\|\>\)also works :heavy_check_mark:
@sheerun could you please submit a PR for this? I'm currently using it as follows:
let vim_regex = E2v(the_users_extended_regex_goes_here)
let vim_regex = substitute(vim_regex, '\\b', '\\(\\<\\|\\>\\)', 'g')
Thanks.
\B is unattainable, is it?