Added a new function to do a regexp match on ritems