sd icon indicating copy to clipboard operation
sd copied to clipboard

Request: Document default regex flags

Open AndydeCleyre opened this issue 5 years ago • 1 comments

The --help output mentions the regex flags available, but not which ones are enabled by default. It could use a bit like "By default, acts like sd -f ce"

AndydeCleyre avatar Jun 13 '20 20:06 AndydeCleyre

ripgrep and sd both use the rust regex implementation, so ripgreps flags should be the same as those here:

https://docs.rs/regex/latest/regex/

you can also use this syntax to enable flags locally:

(?flags)       set flags within current group
(?flags:exp)   set flags for exp (non-capturing)

balupton avatar Dec 02 '21 06:12 balupton