# Segment with URL visited and regexp don't filter

**URL:** <https://forum.mautic.org/t/segment-with-url-visited-and-regexp-dont-filter/25300>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [September 5, 2022, 1:22pm UTC](https://forum.mautic.org/t/segment-with-url-visited-and-regexp-dont-filter/25300 "2022-09-05T13:22:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![clarac](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/clarac/32/7741_2.png) [@clarac](https://forum.mautic.org/u/clarac)\
**Post date:** [September 5, 2022, 1:22pm UTC](https://forum.mautic.org/t/segment-with-url-visited-and-regexp-dont-filter/25300/1 "2022-09-05T13:22:58Z")

</div>

**Your software**  
My Mautic version is: 4.4.1  
My PHP version is: 7.4.30

**Your problem**  
My problem is:  
I make a segment with a filter. I use “URL visited” as field with “regexp” as filter.  
I want to know where the different contacts come from. But, where I do my different segments, with different text based on my different url, I have always the same number of contacts.  
I check my regex, and I think it’s ok. I just put a text.  
Moreover, I also checked, and I have contacts who don’t visit all url.

Do you any idea?

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [September 5, 2022, 1:26pm UTC](https://forum.mautic.org/t/segment-with-url-visited-and-regexp-dont-filter/25300/2 "2022-09-05T13:26:17Z")

</div>

can you paste a pic of your segment filters here.

Also have you tried using contains \*not sure if that is an option).

Did you see anything in any of the error logs ?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 5, 2022, 2:45pm UTC](https://forum.mautic.org/t/segment-with-url-visited-and-regexp-dont-filter/25300/3 "2022-09-05T14:45:12Z")

</div>

We tested this too and I can confirm.  
There are no log entries.  
Regex expression will be ignored.

---

<div class="post-metadata">

**Author:** ![clarac](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/clarac/32/7741_2.png) [@clarac](https://forum.mautic.org/u/clarac)\
**Post date:** [September 6, 2022, 7:31am UTC](https://forum.mautic.org/t/segment-with-url-visited-and-regexp-dont-filter/25300/4 "2022-09-06T07:31:01Z")

</div>

Hi,

Thank you for your answer !

You can find two examples just here:

 ![Capture d’écran 2022-09-06 à 09.28.53](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/ef3785711dec6e76031ea03608522229e197823a.png)  
 ![Capture d’écran 2022-09-06 à 09.29.14](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4ea4eb170e856ef2e376d1a81327289e9c69bde0.png)

Contains is working. Just I need regexp because, for some cases, I have several words.

Unfortunately there is no error logs.

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [September 6, 2022, 7:43am UTC](https://forum.mautic.org/t/segment-with-url-visited-and-regexp-dont-filter/25300/5 "2022-09-06T07:43:16Z")

</div>

I guess following Joeys reply that Regex is not working currently, maybe the answer is to use multiple contains with OR condition. Not ideal, but should work
