Created
July 10, 2015 03:16
-
-
Save neoneo40/813cec6f48daeebbf6f2 to your computer and use it in GitHub Desktop.
문자의 범위 횟수 설정 문제 in regex
This file contains hidden or 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
import re | |
s = '{content:5}' | |
result = re.search('\{content:([0-9])\}', s) | |
print(result.group(1)) | |
# 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment