Trying to create an update script for Minecraft mods and need to be able to remove all the version numbers from the mods to search for the new version.
I have gotten it working to a point but am stuck on one last part. I cannot get it to leave out the 25 from pre25 from that line I need cfm pre (the 25 is the build number which I do not want)
[A-Za-z].*?(?=-[0-9])|(?<= ).*(?= )|([s].*?[k])|([f].*?[e])
1.17.1-additionalbars-2.1.0.jar
'[1.17.1] SecurityCraft v1.8.23-beta5.jar'
absentbydesign-1.17.1-1.6.0.jar
additionalbarsbop-2.1.0.jar
AdditionalEnchantedMiner-1.17-17.6-SNAPSHOT.jar
additionallanterns-1.0.0a-mc1.17.jar
cfm-7.0.0pre25-1.17.1.jar
Croptopia-1.17-FORGE-1.6.2.jar
nekoration-1.17.X-1.4.0.jar
ScalableCatsForce-2.13.6-build-4-with-library.jar
spark-forge.jar
treeharvester_1.17.1-3.2.jar