<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_string_match_value(self, string, string_match_type):
 """Gets the match value"""

        if string_match_type == Type(**get_type_data('EXACT')):
            return string
        elif string_match_type == Type(**get_type_data('IGNORECASE')):
            return re.compile('^' + string, re.I)
        elif string_match_type == Type(**get_type_data('WORD')):
            return re.compile('.*' + string + '.*')
        elif string_match_type == Type(**get_type_data('WORDIGNORECASE')):
            return re.compile('.*' + string + '.*', re.I)