I would like to add a comment to this function explaining what the expression regular does