Last active
December 7, 2015 09:14
-
-
Save akahana-1/c7e3181e1dbcd01f8b13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
import re | |
re.match(r"[0−9]", "9000") | |
# <_sre.SRE_Match object; span=(0, 1), match='9'> | |
re.match(r"[0−9]+", "9000") | |
# <_sre.SRE_Match object; span=(0, 4), match='9000'> | |
re.match(r"[0−9]+", "90001909039") | |
# <_sre.SRE_Match object; span=(0, 4), match='9000'> | |
re.match(r"[0−9]+", "01") | |
# <_sre.SRE_Match object; span=(0, 1), match='0'> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment