Message402461
txt = ' test'
txt = re.sub(r'^\s*', '^', txt)
substitutes once because the * is greedy.
txt = ' test'
txt = re.sub(r'^\s*?', '^', txt)
substitutes twice, consistent with the \Z behavior. |
|
Date |
User |
Action |
Args |
2021-09-22 18:18:55 | bsammon | set | recipients:
+ bsammon, ezio.melotti, mrabarnett, WayneD, 4wayned |
2021-09-22 18:18:55 | bsammon | set | messageid: <1632334735.81.0.132845563859.issue40027@roundup.psfhosted.org> |
2021-09-22 18:18:55 | bsammon | link | issue40027 messages |
2021-09-22 18:18:55 | bsammon | create | |
|