# entity selector with regex

**URL:** <https://community.dynatrace.com/t/entity-selector-with-regex/45834>\
**Category:** Open Q&A\
**Tags:** regex, tagging\
**Created:** [May 30, 2024, 11:35am UTC](https://community.dynatrace.com/t/entity-selector-with-regex/45834 "2024-05-30T11:35:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Guillen](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@David\_Guillen](https://community.dynatrace.com/u/David_Guillen)\
**Post date:** [May 30, 2024, 11:35am UTC](https://community.dynatrace.com/t/entity-selector-with-regex/45834/1 "2024-05-30T11:35:08Z")

</div>

Hi

I create automaticaly tags with entity selector and my question is if i can use the regex in the entity selector.

I have this type(CLOUD\_APPLICATION\_NAMESPACE),toRelationships.isClusterOfNamespace(type(KUBERNETES\_CLUSTER),fromRelationships.isClusterOfHost(type(HOST),hostGroupName.exists()))

I would like change hostGroupName.exists() for something that hostGroupName.name(Contain regex)

is it possible?

Thanks a lot

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [May 30, 2024, 2:20pm UTC](https://community.dynatrace.com/t/entity-selector-with-regex/45834/2 "2024-05-30T14:20:03Z")

</div>

From my understanding, you cannot leverage regex in the entity selector from my understanding. You will be limited to the following documented rules.

> **[Environment API v2 - Entity selector](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/entity-v2/entity-selector)**
>
> Learn the Environment API v2 entity selector syntax for filtering monitored entities by type, name, tag, management zone, and health state.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [May 31, 2024, 6:58am UTC](https://community.dynatrace.com/t/entity-selector-with-regex/45834/3 "2024-05-31T06:58:52Z")

</div>

Hi,

Maybe, you can raise a [product idea](https://community.dynatrace.com/category/DynatraceProductIdeas) about it.

Best regards

---

<div class="post-metadata">

**Author:** ![bill\_scheuernst](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bill_scheuernst/32/2211_2.png) [@bill\_scheuernst](https://community.dynatrace.com/u/bill_scheuernst)\
**Post date:** [September 24, 2025, 7:43pm UTC](https://community.dynatrace.com/t/entity-selector-with-regex/45834/4 "2025-09-24T19:43:55Z")

</div>

Would be nice!
