# Blocklists and regex

**URL:** <https://discourse.pi-hole.net/t/blocklists-and-regex/36846>\
**Category:** Community Help\
**Created:** [August 7, 2020, 5:41pm UTC](https://discourse.pi-hole.net/t/blocklists-and-regex/36846 "2020-08-07T17:41:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [August 8, 2020, 9:54pm UTC](https://discourse.pi-hole.net/t/blocklists-and-regex/36846/2 "2020-08-08T21:54:10Z")

</div>

> [@Mimas](#):
>
> Or is there some way of having PiHole understand that the block list it downloads contains regex?

No, that's not supported (yet)

> [@Load regexps from "host file"](https://discourse.pi-hole.net/t/load-regexps-from-host-file/25829):
>
> Hey Guys, I haven't used Pi-Hole in a little while as I have been experimenting with AdGuard Home. I have had a feature request or two from people whom have wanted to add individual domains to my [regexp list](https://github.com/mmotti/pihole-regex), but I have been trying to keep it as broad as possbile to avoid enforcing my personalised wildcard blocking onto everyone. There has been some chatter around first party trackers and needing to wildcard block those, which I may like to create a separate list for, but I don't really want t…

But if you create this list and know which entries are regex (using a flag or so) you could adapt your injection: Split the file in regex and non-regex. The non-regex file is imported as an **adlist** at once (run gravity afterwards). Only the regex file has to be injected line by line into the database.

 ![Bildschirmfoto zu 2020-08-08 23-52-19](https://discourse.pi-hole.net/uploads/default/original/3X/4/a/4aa374b7a98a46409d056340d7b6429095edfa74.png)

---

_[View the full topic](https://discourse.pi-hole.net/t/blocklists-and-regex/36846)._
