Added generic way of adding regularly used regex expressions as functions in refine.