05 add regex logic in ruby script