Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Last active October 8, 2025 17:57
Show Gist options
  • Save zulhfreelancer/0c3b641d4864f770e4a8 to your computer and use it in GitHub Desktop.
Save zulhfreelancer/0c3b641d4864f770e4a8 to your computer and use it in GitHub Desktop.
Chrome console: How to filter exclude certain logs?

Use this:

^((?![INSERT YOUR WORD THAT YOU WANT TO EXCLUDE HERE]).)*$

Don't forget to check the Regex checkbox!

Example:

I'm excluding logs that contains Pusher words here. So, this is what I put inside the filter box: ^((?!pusher).)*$

@700software
Copy link

I don't see the Regex checkbox in Chrome. Perhaps it's been removed?

@fengerzh
Copy link

I don't see the Regex checkbox in Chrome. Perhaps it's been removed?

You can put a - before keyword to exclude it.

@Wxh16144
Copy link

I don't see the Regex checkbox in Chrome. Perhaps it's been removed?

You can put a - before keyword to exclude it.

I have the same problem, but I have absolutely no idea how to do it. Can you take a screenshot to guide me?

Chrome: 115.0.5790.98

@abentley-fp
Copy link

The format is:

To exclude messages containing "pusher" or "mentor":

-/(\pusher)|(\mentor)/

Got it from: https://mattrossman.com/2024/06/28/filtering-in-chrome-devtools/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment