Adding separator to versioning in file name

A swapping-ground for Regular Expression syntax

Adding separator to versioning in file name

Postby r.pruim » Wed Sep 20, 2023 11:37 am

Adding separator to versioning

Anyone know a way to add . seperators to versioning example I have this file.
Any idea how to make with Regex, I put this one to match _V\d{1}\d{1}\d{1} but I cannot seem to find the complete replace string



NL_XXX_XXX_V114
I want to rename it to
NL_XXX_XXX_V1.1.4
r.pruim
 
Posts: 3
Joined: Wed Sep 20, 2023 10:39 am

Add separator to names ending with _V, then 3 digits

Postby Luuk » Wed Sep 20, 2023 12:24 pm

For the example, your "Match" and "Replace" can be like...
(.+_V\d)(\d)(\d)$
\1.\2.\3
Luuk
 
Posts: 705
Joined: Fri Feb 21, 2020 10:58 pm


Return to Regular Expressions