--- title: "Filter expressions" menu: concepts: weight: 4 --- # Filter expressions Many commands in the mitmproxy tool make use of filter expressions. Filter expressions consist of the following operators: {{< readfile file="/generated/filters.html" >}} - Regexes are Python-style - Regexes can be specified as quoted strings - Header matching (~h, ~hq, ~hs) is against a string of the form "name: value". - Strings with no operators are matched against the request URL. - The default binary operator is &. ## View flow selectors In interactive contexts, mitmproxy has a set of convenient flow selectors that operate on the current view:
@all | All flows |
---|---|
@focus | The currently focused flow |
@shown | All flows currently shown |
@hidden | All flows currently hidden |
@marked | All marked flows |
@unmarked | All unmarked flows |