Example : #!/usr/bin/python import re line = "Cats are smarter than dogs". matchObj = re.match( r'(.*) are (.*?) .*', line, re.M|re.I) if matchObj:.
確定! 回上一頁