This does not need to necessarily be done in pandas but it would be nice if it could be done in pandas.
Say I have a list or Series of strings:
['XXY8779','0060-19','McChicken','456728']
And I have another list or Series which contains sub-strings of the original like so:
['60-19','Chicken','8779','1124231','92871','johnson']
And this would return something like:
[True, True, True, False]
I'm looking for a match that is something like:
^[a-zA-Z0-9.,$;]+ < matching string in other list >
So in other words, something that starts with 1 or more of any character but the rest matches exactly with one of the strings in my other list.
Does anyone have any ideas on the best way to accomplish this?
Thanks!