Transform an arbitrary string to lowercase and replace punctuation and spaces with underscores.

@param string $string         The target string.
@param string $regex          The punctuation regular expression to use.
@param string $transform_type Whether to a partial or complete transform.
Valid values are: 'full', 'case', 'punctuation'.
@return string