原书出处
Natural Language Processing in Action, Second Edition
>>> re.match(r, 'Hello Rosa', flags=re.IGNORECASE) #3 <re.Match object; span=(0, 10), match='Hello Rosa'> >>> re.match(r, "hi ho, hi ho, it's off to work ...", flags=re.IGNORECASE) <re.Match object; span=(0, 5), match='hi ho'> >>> re.match(r, "hey, what's up", flags=re.IGNORECASE) <re.Match object; span=(0, 9), match='hey, what'> #1 There are two “official” regular expression packages in Python. The re package is pre-installed with all versions of Python. The regular expression
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/chapter-1.html
EPUB SHA-256:0e9a35e49ca446e322e5524e53f39fb6bee5b2b23d9cda10ef052aca770b0b36