0

I have a project in asp.net web form and I want to search all files which contains "~/Products" with ctrl+shift+f but I want to exclude a file which is Server.Transfer("~/Products"). I tried regex but it did not work. How Can I do this with regex or something else?

I tried

*~/Products*;!*Server.Transfer("~/Products")*;
1
  • It looks like you are using some glob, not regex pattern to find specific files, right? Commented Feb 10, 2022 at 9:00

1 Answer 1

0

If you want to search all files which contains "~/Products" and exclude a file which is Server.Transfer("~/Products").

You can try this regex:

^((?!Server\.Transfer).)*~/Products((?!Server\.Transfer).)*$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.