HACKER Q&A
📣 Curiositry

Tools for working with Vim regex?


I have been trying to convert fairly complex-for-me PCRE/JavaScript style regular expressions[1] to be Vim-compatible.

I have not been able to find any tool that will automatically convert to and from Vim regex. Is there one I have missed?

In addition, the main Regex testing apps I use (regexr.com and regex101.com) don't support Vim regex, which makes figuring out what's wrong more tedious.

The closest I have gotten is by asking Phind to do it (https://www.phind.com/search?cache=43967e8e-ec1c-4e9a-94ab-5049857e330f), but it does not produce a working result on its own.

The only real resource I've found is https://vimregex.com/.

Is there any automated tool that could help with this task?

Thanks!

[1]: This common-OCR-error-correcting regex is one of them: (?