Skip to content

Instantly share code, notes, and snippets.

@neoneo40
Created July 10, 2015 03:16
Show Gist options
  • Save neoneo40/813cec6f48daeebbf6f2 to your computer and use it in GitHub Desktop.
Save neoneo40/813cec6f48daeebbf6f2 to your computer and use it in GitHub Desktop.
문자의 범위 횟수 설정 문제 in regex
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