<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _search_val(matches, compiled_pattern, fld_val):
 """Search for user-regex in scalar data values."""

        mtch = compiled_pattern.search(fld_val)
        if mtch:
            matches.append(fld_val)