# InsightVM Dynamic Asset Groups Filtered by RegEx

**URL:** <https://discuss.rapid7.com/t/insightvm-dynamic-asset-groups-filtered-by-regex/57311>\
**Category:** InsightVM\
**Tags:** InsightVM\
**Created:** [June 29, 2026, 2:33pm UTC](https://discuss.rapid7.com/t/insightvm-dynamic-asset-groups-filtered-by-regex/57311 "2026-06-29T14:33:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drachenlord](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/d/edb3f5/32.png) [@drachenlord](https://discuss.rapid7.com/u/drachenlord)\
**Post date:** [June 29, 2026, 2:33pm UTC](https://discuss.rapid7.com/t/insightvm-dynamic-asset-groups-filtered-by-regex/57311/1 "2026-06-29T14:33:27Z")

</div>

Hey,

as the filtering rules in IVM are restricted to use AND or OR exclusively but in general IVM supports regex: Is it possible to use regex for searching with like operator in the following way: ^(PARTIALHOSTNAME1|PARTIALHOSTNAME2)$ that allows me to filter for assets containing either one of those both substrings? I know that you can filter for both via separate filter using ANY/OR. But if you do so you can’t set an ALL/AND filter (e.g. for the operating system).

---

<div class="post-metadata">

**Author:** ![talford](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@talford](https://discuss.rapid7.com/u/talford)\
**Post date:** [July 2, 2026, 11:31am UTC](https://discuss.rapid7.com/t/insightvm-dynamic-asset-groups-filtered-by-regex/57311/2 "2026-07-02T11:31:44Z")

</div>

I’ve never found a good way to do this, and have asked R7 about this a few times. I have seen a recent comment that suggest this may be improved so who knows but, in the meantime, the ‘bad’ way to do this is use tags. It’s bad because you end up with hundreds of tags that solely exist to get around this problem and it easily gets out of hand.  
As an example:

1. Create a tag with a tagging rule set to show where hostname contains ‘ABCD’ **OR** hostname contains ‘EFGH’.
2. Create your dynamic asset group looking for the tag created above **AND** where OS contains ‘Windows 11’

This way you’re only then using a single AND\OR in each step. From experience, don’t just rush into this - plan the tags and naming convention before you start!!

---

<div class="post-metadata">

**Author:** ![JeraldT](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/jeraldt/32/2630_2.png) [@JeraldT](https://discuss.rapid7.com/u/JeraldT)\
**Post date:** [November 5, 2026, 9:11pm UTC](https://discuss.rapid7.com/t/insightvm-dynamic-asset-groups-filtered-by-regex/57311/3 "2026-11-05T21:11:49Z")

</div>

I had regex working flawlessly for IP address like filtering and was going to configure more but I noticed they all stopped working
