Collision complexity with blueprint or c++

I’d like to make a collision only with BP or C++. Because I want to make collision more simple for next time. I need to make a collision to actors which don’t have the word ‘door’ in their name. If they have the word ‘door’ in their name they should not be enabeld to collision that characters can pass through the door. Can someone help me?