Support multiple elements and regex