eregex.vim icon indicating copy to clipboard operation
eregex.vim copied to clipboard

Implement \b conversion

Open sheerun opened this issue 5 years ago • 4 comments

It seems to me that \(\(\_^\|\_$\|\W\)\)\@= should work as replacement, no?

sheerun avatar Aug 31 '20 19:08 sheerun

Sorry, \(\(\(\_^\|\_$\|\W\)\)\@<=\|\(\(\_^\|\_$\|\W\)\)\@=\), but \(\<\|\>\) also works

sheerun avatar Aug 31 '20 19:08 sheerun

I also found missing \b making target specific keyword (like new MyClass() instead of myNewVariable extremely limiting. Hope it get resolved!

Maswor avatar Mar 13 '22 05:03 Maswor

\(\<\|\>\) 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.

sunaku avatar Aug 20 '22 00:08 sunaku

\B is unattainable, is it?

Silentdoer avatar Dec 08 '22 16:12 Silentdoer