m/(a|b)+/ # match any sequence of "a" and "b" characters # in any order.