[Part] do regexp matching the ruby way