I want to pick up a substring from <personne01166+30-90>
, which the output should look like: +30
and -90
.
The strings can be like: 'personne01144+0-30'
, 'personne01146+0+0'
, 'personne01180+60-75'
, etc.
I tried use
<string.split('+')[len(string.split('+')) -1 ].split('+')[0]>
but the output must be two correspondent numbers.