# Unable to use regex for the datatypes other than text field

**URL:** <https://forum.mautic.org/t/unable-to-use-regex-for-the-datatypes-other-than-text-field/19076>\
**Category:** General Discussion\
**Tags:** community, development, discussion\
**Created:** [April 19, 2021, 12:35pm UTC](https://forum.mautic.org/t/unable-to-use-regex-for-the-datatypes-other-than-text-field/19076 "2021-04-19T12:35:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rehannischal7](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rehannischal7/32/4468_2.png) [@rehannischal7](https://forum.mautic.org/u/rehannischal7)\
**Post date:** [April 19, 2021, 12:35pm UTC](https://forum.mautic.org/t/unable-to-use-regex-for-the-datatypes-other-than-text-field/19076/1 "2021-04-19T12:35:31Z")

</div>

![Capture4](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/fe9ac041900ea0b7793a5870e29a4f723dad4449.png)

When I use regex filter while creating a segment, I am unable to use characters in the input field for the data types other than the text field.

---

<div class="post-metadata">

**Author:** ![jorge73](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jorge73/32/12645_2.png) [@jorge73](https://forum.mautic.org/u/jorge73)\
**Post date:** [October 9, 2025, 1:49pm UTC](https://forum.mautic.org/t/unable-to-use-regex-for-the-datatypes-other-than-text-field/19076/2 "2025-10-09T13:49:38Z")

</div>

I found a workaround for it. Create a "campaign and use a “Condition” block. Idk why, but the regex in a Condition block works on each datatypes. E.g. I use it on a NUMBER datatype to tag my clients in TAG\_EVEN and TAG\_ODD with this regexp [02468]$. After tagging them, I was be able easily to create different segments. I hope this can help someone.
