• possible in one regex?

Question related to mission Brackets

 

I'm trying to learn regex and was trying to solve this one in one single regex matcher. Is this at all possible or am I wasting my time? :P