Skip to content

case insensitive match with -match-regex / -mr option #1151

Answered by gwen001
gprime31 asked this question in Q&A
Discussion options

You must be logged in to vote

Since the value you provide is passed to the Go function regexp.Compile, you can use the following trick:

cat urls.txt | httpx -mr "(?i)whatever"
cat urls.txt | httpx -mr "(?i)(something|blablabla|guess what)"

Tested, it works.

https://github.com/google/re2/wiki/Syntax

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ehsandeep
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
2 participants
Converted from issue

This discussion was converted from issue #1146 on May 08, 2023 06:45.