Skip to content
#

regex

Here are 1,951 public repositories matching this topic...

blueyed
blueyed commented Sep 12, 2019

rg --debug should output information about ignore files being read.

Currently it outputs something like the following, but it is not clear where the patterns are coming from:

% rg --no-config --debug foo
DEBUG|rg::args|src/args.rs:544: not reading config files because --no-config is present
DEBUG|grep_regex::literal|grep-regex/src/literal.rs:59: literal prefixes detected: Literals {
p3k
p3k commented Apr 18, 2020

It’s probably straight-forward for some people using Docker more regularly than me, but it took a while to find out how to run truffleHog from Docker with my locally cloned repo:

cd /path/to/git_repo
docker run --rm -v `pwd`:/proj dxa4481/trufflehog file:///proj
  • -v mounts the current working dir (`pwd`) to the /proj dir in the Docker container
  • file:///proj refer
mqudsi
mqudsi commented Mar 29, 2020

I was bitten pretty hard (my fault!) by a subtle difference in eXtended mode's handling of spaces in character classes. I was expecting (except in a much more complicated context) (?x)[ ] to match a single space as it does with pcre2, but that does not seem to be the case (and doesn't seem to be documented?).

In PCRE2, (?x) enables spurious use of whitespace everywhere except in character c

doc

Improve this page

Add a description, image, and links to the regex topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the regex topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.