Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
RE2
RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library.
-
ripgrep
ripgrep recursively searches directories for a regex pattern while respecting your gitignore
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I think eregex.vim was the plugin I last saw that did this, but I haven't tried it. I don't like putting too much between me and /. I use /\v when I want something closer to PCRE.
This wouldn’t be a direct replacement for searching, but could you create/find a tool which uses perl regex to fill the location window? e.g you can use vim-grepper and modify the rg command with --pcre to use the pcre2 engine.
In case it matters, PCRE is not 100% compatible with Perl regular expression syntax, and both have differences from Perl-inspired regexes in various programming languages. This table lists some differences between engines, though it omits Vim's syntax. The RE2 syntax page has details on Perl, PCRE, and Vim syntax as they differ from RE2.
I’m no expert, but I believe ripgrep will do PCRE, and there are more than a couple vim plugins that’ll leverage it. I happen to use vim-ripgrep, which is good enough for me, but not sure if it’ll let you get at the PCRE option (I’d guess it should, but I haven’t checked).
I’m no expert, but I believe ripgrep will do PCRE, and there are more than a couple vim plugins that’ll leverage it. I happen to use vim-ripgrep, which is good enough for me, but not sure if it’ll let you get at the PCRE option (I’d guess it should, but I haven’t checked).