I'm looking for a function in python that works exactly like '%' does in SQL for matching strings. I need this to match some strings that have weird spacing due to the way they were exported so I'll need to put % in between every single word to find the strings that I want.
example:
"Hello how are you"
"Hello how are you"
"Hello how are you"
" Hello how are you"
I would like to use the sql way of matching strings to "%Hello%how%are%you%"