hi,
i have a list of regex patterns (stored in a list type) that I would like to apply to a string.
Does anyone know a good way to:
- Apply every regex pattern in the list to the string and
- Call a different function that is associated with that pattern in the list if it matches.
I would like to do this in python if possible
thanks in advance.