Aug-17-2020, 09:59 AM
Hello metullburr,
thank you for your answer and taking time.
This one works.
I have slept a few nights over this. I found a solution with regex.
I will mark my thread as solved.
Regards
--Christian
thank you for your answer and taking time.
This one works.
I have slept a few nights over this. I found a solution with regex.
import re s = '''"SYS"."M_SYSTEM_OVERVIEW" ('System', 'Version', '', '2.00.050.00.1592305219 (fa/hana2sp05)')''' m = re.search('(Version)(\D+)(\S+)', s) test1 = m.group(1) test2 = m.group(2) test3 = m.group(3) print("string = ", s) print("test1: ", test1) print("test2: ", test2) print("test3: ", test3)This one gives me also the Version string I am looking for. I will see which solution I will use in my script.
I will mark my thread as solved.
Regards
--Christian