Aug-14-2020, 03:47 PM
Hello Community,
I have the following string
I tried several things via regex but all failed. One of my ideas was to use the first part until the version number as a own group.
How should I design patterns to get this?
Also I am not sure when to escape in that string and when not.
Can someone please assist.
Regards
--Christian
I have the following string
"SYS"."M_SYSTEM_OVERVIEW" ('System', 'Version', '', '2.00.050.00.1592305219 (fa/hana2sp05)')I need the version information
2.00.050.00.1592305219from that string.
I tried several things via regex but all failed. One of my ideas was to use the first part until the version number as a own group.
m = re.search('("SYS"."M_SYSTEM_OVERVIEW" \(\'System\', \'Version\', \'\', \')(\S+)(.+)', line) Version = m.group(2)This lead to an AttributeError: 'NoneType' object has no attribute 'group'
How should I design patterns to get this?
Also I am not sure when to escape in that string and when not.
Can someone please assist.
Regards
--Christian