Is there a way to OR items in a "card name contains" butler rule?
Asked by Brittany Joiner:

I want to apply a rule to cards that contain any of one list of things in the card (for example, apply the purple label if it contains eggs OR milk). is there a way to say that in a single butler rule? Or do i need to create a rule for each item? I tried with a comma but that didn't work - i assume it's looking at only a string within here, so that's the equivalent or saying "eggs,milk" rather than "eggs","milk"

![SCR-20220128-h7b.png](https://community.atlassian.com/t5/image/serverpage/image-id/180545i1B27885440B75F8D/image-size/large?v=v2&px=999 "SCR-20220128-h7b.png")


Answers:
author: milynnus
body: [@Brittany Joiner](/t5/user/viewprofilepage/user-id/1692248)

This has worked for me
> when a card with a name containing "regex:/.\*(Prof\|Course).\*/" is moved into list "Course", post comment "Card name contains {wildcard1}"

comments: author: Brittany Joiner
body: Yes this work!! Thanks [@milynnus](/t5/user/viewprofilepage/user-id/3947182) !!


author: Megan Schaap
body: Sorry, this is something I need to figure out how to do as well. I'm a bit confused by this answer, can someone explain to me how you were able to get this to work?


author: Megan Schaap
body: Nevermind, I had to look more into what regex meant, I understand it now. Thank you [@milynnus](/t5/user/viewprofilepage/user-id/3947182) !!


author: Gabrielle Carreon
body: Hi guys! Would really appreciate a step by step!! :D Still couldn't make it work. Please help xx


author: Brittany Joiner
body: [@Gabrielle Carreon](/t5/user/viewprofilepage/user-id/5270034) can you share an example of what you're trying to do and the board? I might be able to create the regex for you


author: Gabrielle Carreon
body: Hi Brittany! Thanks so much for replying!! This is what I'm trying to do:

I want that when a card contains lot of texts/names that I applied, it will go into a specific Card.


author: Brittany Joiner
body: [@Gabrielle Carreon](/t5/user/viewprofilepage/user-id/5270034) you mean like it will be attached to a specific card?

So something like "if a card contains text with "eggs, milk, or cheese", then find the Dairy card and attach a link with the original card"?


author: Gabrielle Carreon
body: ![Screenshot 2023-07-17 at 11.23.03 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/269367i4139C4CC03369043/image-size/large?v=v2&px=999 "Screenshot 2023-07-17 at 11.23.03 PM.png")


author: Brittany Joiner
body: [@Gabrielle Carreon](/t5/user/viewprofilepage/user-id/5270034) ah i see, sorry didn't see that screenshot before.

So i think what you need to do then is...

regex:/.\*(Gabi\|Carreon\|Gabgab\|Gabo).\*/

Paste that into the field where you currently have {Gabi}, {Carreon}...

Should look like this

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/269369i3A3B5375534F70EE/image-size/large?v=v2&px=999 "image.png")


author: Brittany Joiner
body: Let me know if that works! I just tried it on a board of mine and it did, so should work for you too, but let me know if it doesn't!


author: Gabrielle Carreon
body: Hi Brittany! It worked! You're my saviorr, thank you! :)


author: Brittany Joiner
body: Yay [@Gabrielle Carreon](/t5/user/viewprofilepage/user-id/5270034) ! Glad i could help! Let me know if you need anything else!


author: Gabrielle Carreon
body: Hi Brittany! Thanks so much for replying!! This is what I'm trying to do:

I want that when a card contains lot of texts/names that I applied, it will go into a specific Card. I was able to do it but with a single text/![Screenshot 2023-07-17 at 11.23.03 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/269366i6F798DAA0FE3287E/image-size/large?v=v2&px=999 "Screenshot 2023-07-17 at 11.23.03 PM.png")name only.

*** ** * ** ***

comments: author: Gabrielle Carreon
body: -