blob: 385ec77604295316c54b2579c254aff7ec9cd06b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import re
re_test = re.compile(r"^(?P<year>\d{4}) (?P<day>\d) \w\s{,3}$")
# ^ @string.regexp
re_test = re.compile(
# comment
# ^ @comment
r"^(?P<year>\d{4}){1}"
# ^ @string.regexp
# comment
# ^ @comment
r"(?P<day>\d) \w\s{,3}"
# ^ @string.regexp
# comment
# ^ @comment
)
# interpolation
print("foo %s bar %d" % ("arg1", 2))
# ^ @character
|