regexp dir methods