# Searching in rules

You can search rules in rule tables and on the Inspection tab of Inspection Policies.

In rule tables, you can search rules based on most of the cells. Select Tools > Search Rules to display the search at the bottom of the rule table.

In the Rules tree on the Inspection tab of Inspection Policies, you can search the Situations through type-ahead searching. When you type a part of the name of the Situation, the tree shows only matching Situations (and their parent Situation Types, which make up the tree branches). The currently active type-ahead search is shown at the bottom of the tree pane.

Figure: Rule search for rule tables

1
  Drag and drop or enter the search criteria in selected cells.
2
  Search rules that match all or any defined criteria.
3
  Do not find rules that have ANY in a cell that is used as search criterion.
4
  Hide rules that do not match the defined criteria.
5
  Remove all search criteria.

You can add values in different ways:

- Drag and drop elements from the rule table, from different windows and tabs, or from the resource pane (shown in edit mode).
- Right-click a cell, then choose Select to browse for elements.
- In the Source and Destination search cells, you can manually type in IPv4 or IPv6 addresses, networks, or address ranges. Use standard notations (for example, 192.168.1.0/16, or 192.168.10.0 - 192.168.10.101 for IPv4 networks, or 2001:0db8:1234::/48, or 2001:0db8:1234:: - 2001:0db8:1234::100 for IPv6 networks.
- In the Comment and Rule Name search cells, you can manually type in any part of the comment or name.

Fill in the relevant cells. The cells you leave empty are ignored in the search. The first rule that matches your search is shown on a dark green background and all other matching rules are highlighted on a light green background. Click Next or Previous to move up or down from the currently selected rule to a matching rule above or below.