Skip to content
#

regex

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

Manishearth
Manishearth commented Oct 15, 2019

What version of ripgrep are you using?

$ rg --version
ripgrep 11.0.2
-SIMD -AVX (compiled)
+SIMD +AVX (runtime)

How did you install ripgrep?

Cargo

What operating system are you using ripgrep on?

Ubuntu

Describe your question, feature request, or bug.

Sometimes you end up inside a directory that's actually gitignored, and search for stuff. Of course,

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
learn_gnuawk
arifmahmudrana
arifmahmudrana commented Apr 11, 2020

In file gnu_awk.md there is told '<' to be replaced with '\<' only if not preceded by '\' but that is never the case because optional meta character matches one or zero occurrences so this should be something like this '<' to be replaced with '\<' optionally preceded by '\'. A way to prove can be just change the code & run

$ echo 'blah \< foo bar < blah baz <' | awk '{gsub(/\\?</, 

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.