# Group Attribute Statement Regex Filter

**URL:** <https://devforum.okta.com/t/group-attribute-statement-regex-filter/6263>\
**Category:** Questions\
**Created:** [September 13, 2019, 4:58am UTC](https://devforum.okta.com/t/group-attribute-statement-regex-filter/6263 "2019-09-13T04:58:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shjaiswal](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@shjaiswal](https://devforum.okta.com/u/shjaiswal)\
**Post date:** [September 13, 2019, 4:58am UTC](https://devforum.okta.com/t/group-attribute-statement-regex-filter/6263/1 "2019-09-13T04:58:16Z")

</div>

I am trying to configure a SAML app and I have 2 category of groups: like “IT-%” and the other “CS-%”. Could you please help me how I can get all the groups which starts with either “IT-” or “CS-” using Regex?

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [September 13, 2019, 5:04am UTC](https://devforum.okta.com/t/group-attribute-statement-regex-filter/6263/2 "2019-09-13T05:04:36Z")

</div>

Hi @shjaiswal

You can try something like the following to match all groups starting with IT- and CS-

```auto
^IT-(.*)*|CS-(.*)*$

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 23, 2024, 7:21pm UTC](https://devforum.okta.com/t/group-attribute-statement-regex-filter/6263/3 "2024-01-23T19:21:29Z")

</div>

Closed on January 23, 2024, 7:21pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
