I have a regular expression like this:
regexp = u'ba[r|z|d]'
Function must return True if word contains bar, baz or bad.
In short, I need regexp analog for Python's
'any-string' in 'text'
How can I realize it? Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…