Message324272
Not sure how helpful it would be to have the re.sub expressions for lstrip and rstrip, but I think it would look like:
l_stripped = re.sub(r'^\s*', '', foo)
r_stripped = re.sub(r'\s*$', '', foo) |
|
Date |
User |
Action |
Args |
2018-08-28 18:25:07 | edmundselliot@gmail.com | set | recipients:
+ edmundselliot@gmail.com, jwilk, ezio.melotti, docs@python, Dimitri Papadopoulos Orfanos, nitishch, joel.johnson, oulenz |
2018-08-28 18:25:07 | edmundselliot@gmail.com | set | messageid: <1535480707.66.0.56676864532.issue25433@psf.upfronthosting.co.za> |
2018-08-28 18:25:07 | edmundselliot@gmail.com | link | issue25433 messages |
2018-08-28 18:25:07 | edmundselliot@gmail.com | create | |
|