SyntaxFix
Write A Post
Hire A Developer
Questions
Can also be done this way..
regex=re.compile('^hello') ## THIS WAY YOU CAN CHECK FOR MULTIPLE STRINGS ## LIKE ## regex=re.compile('^hello|^john|^world') if re.match(regex, somestring): print("Yes")