First of all my apologies if something similar was posted. My regex knowledge is very limited and I was unable to find something that I could adapt.
Giving an XML file that looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog>
<include file="init.changelog.xml"/>
<include file="v9.1.changelog.xml"/>
<include file="v9.2.changelog.xml"/>
<include file="v9.3.changelog.xml"/>
<include file="v9.3.1.changelog.xml"/>
<include file="v9.3.3.changelog.xml"/>
</databaseChangeLog>
I would like to have a regex that would extract the last version of the change log file. In the example above that would be the string v9.3.3
That regex would need to be java compatible as I need to use it with ant.
Thank you in advance. If you able to help me a few explanations about how it works would be much appreciated.