> ## Documentation Index
> Fetch the complete documentation index at: https://docs-xcor.paloaltonetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Regular expressions

> Learn about which regular expression engine to use when querying data in Palo Alto Networks Cortex XCOR.

All regular expressions in Prometheus use [RE2 syntax](https://github.com/google/re2/wiki/Syntax).
Palo Alto Networks Cortex XCOR supports RE2 syntax compatibility with Prometheus
for queries using regular expressions in the following areas:

* [Changes Explorer](https://docs-xcor.paloaltonetworks.com/investigate/querying/filter-events.md)
* [Dashboards](https://docs-xcor.paloaltonetworks.com/observe/dashboards)
* [Service configuration](https://docs-xcor.paloaltonetworks.com/administer/service-discovery.md)
* [Metrics Explorer](https://docs-xcor.paloaltonetworks.com/investigate/querying/metrics/explorer.md)
* [Monitors](https://docs-xcor.paloaltonetworks.com/investigate/alerts/monitors/monitor-annotations.md)
* [Muting rules](https://docs-xcor.paloaltonetworks.com/investigate/alerts/muting-rules.md#match-on-values-using-regular-expressions)
* [Recording rules](https://docs-xcor.paloaltonetworks.com/control/shaping/shape-metrics/rules/recording.md)
* [Trace Explorer](https://docs-xcor.paloaltonetworks.com/investigate/querying/traces)

> [!NOTE]
>
> Regular expression syntax and glob syntax are not interchangeable. Cortex XCOR
> supports only one of these query matching patterns in
> supported areas of the product. For example,
> [drop rules](https://docs-xcor.paloaltonetworks.com/control/shaping/shape-metrics/rules/drop-rules.md#create-a-drop-rule) support glob
> syntax, whereas [recording rules](https://docs-xcor.paloaltonetworks.com/control/shaping/shape-metrics/rules/recording.md) support
> regular expression syntax.

> [!NOTE]
>
> Because the implementation of this parser is customized, the syntax might vary in
> some instances.


## Related topics

- [Logging query syntax](https://docs-xcor.paloaltonetworks.com/investigate/querying/query-logs/query-syntax.md)
- [Setting monitor muting rules](https://docs-xcor.paloaltonetworks.com/investigate/alerts/muting-rules.md)
- [Scrape configuration using Kubernetes](https://docs-xcor.paloaltonetworks.com/ingest/metrics-traces/collector/discover/scrape-configuration.md)
- [Metrics Explorer](https://docs-xcor.paloaltonetworks.com/investigate/querying/metrics/explorer.md)
- [Optimize your log data](https://docs-xcor.paloaltonetworks.com/control/shaping/shape-logs/control-logs.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.