diff options
author | Rory O’Kane <rory@roryokane.com> | 2019-04-16 21:22:48 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2019-04-16 21:22:48 -0400 |
commit | a6222939f9032b40de6065a71cf06d143dda86a3 (patch) | |
tree | c8419b46ba67cc3aafa24758e641f48e25717e28 | |
parent | 6ffd434232b46df4f94bd3db9197f154aca7d2f1 (diff) |
readme: mention --pcre2 as long form of -P
This is for consistency with the short and long flags given in other
bullet points. I originally assumed there was no long flag for `-P`
because none was given here.
PR #1254
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -108,8 +108,8 @@ increases the times to `2.640s` for ripgrep and `10.277s` for GNU grep. * ripgrep has optional support for switching its regex engine to use PCRE2. 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` (use PCRE2 always) or - `--auto-hybrid-regex` (use PCRE2 only if needed). + regex engine. PCRE2 support can be enabled with `-P/--pcre2` (use PCRE2 + always) or `--auto-hybrid-regex` (use PCRE2 only if needed). * 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 |