Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Doing this in the console works:
>> line = '0.9;0.0028' >>> arr = re.split(',|;',line) >>> arr ['0.9', '0.0028']
but the same thing in code does not, as I get this value for arr
['0.9,0.0028']
I do import re in code, and don't see any error about re not being imported, so I am not sure what my problem is?
Thanks for any help.
Bernard
Solved! Go to Solution.