Python Forum

Full Version: How to get values from part of a string?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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