Reputation: 31
This is what I have, but I know it is incorrect and I'm not sure what to change
print '0.4066145E-07-0.3677403'.split('E+(\-\d{2})', 1 )
I'm looking to get:
['0.4066145E-07','-0.3677403']
or more generally I just want to split up these numbers.
['######E-##','#########']
Also what if there is an exponent in the second number?
['######E-##','#######E-##']
Upvotes: 2
Views: 96