I am trying to fetch the plugin version from the config XML file(fread) using regex.
Using the following regex. But I am getting the entire line instead, I am just interested in the version i.e "4.3.0". Any help on how that can be achieved?
(Pdb) key
'plugin="git'
(Pdb) re.findall(key+".*",fread)
['plugin="[email protected]">\n <configVersion>2</configVersion>\n <userRemoteConfigs>\n <hudson.plugins.git.UserRemoteConfig>\n
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…