is there some kind of method in python that would allow me something like this:
if string == "*" + "this" + "*" +"blue" + "*":
and it would be True if "string" was "this is blue", "this was blue" or "XYZ this XYZ blue XYZ"
is something like this possible in python in a simple way? I don't mean the %s format cause there you need to pass some value as %s, i need it to be able to check all possible forms resp. just ignore everything between "this" and "blue". However I can't just check if the first 4 characters of the string are "this" and the last 4 would be "blue" because the string is actually a long text and I need to be able to check if within this long text there is a part that says "this .... blue"