Let\'s suppose I have a line:
a|b|c
I\'d like to run a regex to convert it to:
a\\|b\\|c
In most regex engine
If you use very-magic (use \v) you'll have the Perl/pcre behaviour on most special characters (excl. the vim specifics):
very-magic
\v
:s#\v\|#\\|#g