<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_mnemonics_from_regex(self, pattern):
 """ Should probably integrate getting curves with regex, vs getting with aliases, even though mixing them is probably confusing. For now I can't think of another use case for these wildcards, so I'll just implement for the curve table and we can worry about a nice solution later if we ever come back to it. """

        regex = re.compile(pattern)
        keys = list(self.data.keys())
        return [m.group(0) for k in keys for m in [regex.search(k)] if m]