Python Forum
How to get values from part of a string? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to get values from part of a string? (/thread-18404.html)



How to get values from part of a string? - mahi926 - May-16-2019

this is the my log


2019-05-15 23:54:00,001 INFO [com.xxxxx.xxxx.xxxx] [xxxxxxxxx] xxxxx xxxxx: 13840.13500213623/16384.0/13840.13500213623

i have to get values 13840 and 16384 and stored in diff variable any one please help.


RE: get values - buran - May-16-2019

split at space. then split the last element in the result at '/'.
Here it's not clear what you need so process the result accordingly

another option is to use RegEx