Skip to content

Instantly share code, notes, and snippets.

@JoMingyu
Created April 9, 2018 10:56
import re
print(re.fullmatch('\d+', '123'))
# <_sre.SRE_Match object; span=(0, 3), match='123'>
print(re.fullmatch('\d+', '123ab'))
# None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment