add regex functionalities