summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorpierrenn <git@pnn.sh>2020-02-28 00:58:56 +0900
committerAndrew Gallant <jamslam@gmail.com>2020-03-15 09:30:58 -0400
commit3a6a24a52ad43d55554240b43e8be989c78e4efe (patch)
treecc9ec1892cf446010327f87bb5a3494a81c2e5cb /README.md
parentaab3d80374d5ba4a926d2928ccd476f99846b312 (diff)
cli: add engine flag
This permits switching between the different regex engine modes that ripgrep supports. The purpose of this flag is to make it easier to extend ripgrep with additional regex engines. Closes #1488, Closes #1502
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index c9c2f6ee..760643fd 100644
--- a/README.md
+++ b/README.md
@@ -109,7 +109,8 @@ increases the times to `2.640s` for ripgrep and `10.277s` for GNU grep.
Among other things, this makes it possible to use look-around and
backreferences in your patterns, which are not supported in ripgrep's default
regex engine. PCRE2 support can be enabled with `-P/--pcre2` (use PCRE2
- always) or `--auto-hybrid-regex` (use PCRE2 only if needed).
+ always) or `--auto-hybrid-regex` (use PCRE2 only if needed). An alternative
+ syntax is provided via the `--engine (default|pcre2|auto-hybrid)` option.
* ripgrep supports searching files in text encodings other than UTF-8, such
as UTF-16, latin-1, GBK, EUC-JP, Shift_JIS and more. (Some support for
automatically detecting UTF-16 is provided. Other text encodings must be