Message373422
re.findall(r"\w+ly", text) does not find all adverbs in a sentence, it finds words that contain ly (not ending with ly) :
if text= 'andlying clearly', output: [andly, clearly]
which is wrong!
the right way to do this is re.findall(r'\b\w+ly\b',text)
output= clearly! |
|
Date |
User |
Action |
Args |
2020-07-09 19:08:45 | Rim Chatti | set | recipients:
+ Rim Chatti, rhettinger, ezio.melotti, mrabarnett, docs@python |
2020-07-09 19:08:45 | Rim Chatti | set | messageid: <1594321725.1.0.285868168797.issue41259@roundup.psfhosted.org> |
2020-07-09 19:08:45 | Rim Chatti | link | issue41259 messages |
2020-07-09 19:08:45 | Rim Chatti | create | |
|