[[regex]]
== --regex


[float]
Summary
~~~~~~~

IMPORTANT: This flag only functions within the scope of <<index-selection,index selection>> or <<snapshot-selection,snapshot selection>>.

Include only indices or snapshots matching the provided pattern.

[float]
Flags
~~~~~

* `--regex` A regular expression pattern.

[float]
Examples
~~~~~~~~

Show only indices beginning with log and ending with prod:

------------------------------------------
curator show indices --regex '^log.*prod$'
------------------------------------------
