cleaned up code, added pd.Series for regex patterns