Item Obliterator (Modpack Utils Series)

Item Obliterator (Modpack Utils Series)

15M Downloads

Regex for remove all items from one mod except one

ArcaneAlloy opened this issue ยท 2 comments

commented

Hello! I would like to know if it is possible to create a regex to ban all the items of a mod, except one. For example, all the items from the Create mod except the "create:experience_nugget"

commented

^(?!.*\bcreate:experience_nugget\b).+$

commented

What if there are multiple items I want to keep? Can I use this multiple times in the "blacklisted_items" section? Like this:

^(?!.\bpneumaticcraft:item_life_upgrade\b).+$,
^(?!.
\bpneumaticcraft:armor_upgrade\b).+$,
^(?!.*\bpneumaticcraft:magnet_upgrade\b).+$