There's a string like that:
mystr = 'account_id 37318 not found'
I'm wondering how to write an condition better than:
if 'account_id' not in str and 'not found' not in str:
doSomething()
I guess there must be something like:
if 'account_id' + %any substring% + 'not found' not in str:
doSomething()
Probably a regular expression might help, but I'm not good with using it.
Thank you in advance.
stris a very bad variable name.