Jump to content
Ketarin forum

Editing the version variable


netBios
 Share

Recommended Posts

Hi all,

 

I am new to Ketarin in using functions on variables. How can I edit a variable that has no points in the version string I grab on the download page?

 

Example: v7460 (this is the value of my variable)

I want: v7.4.6.0

 

I tried some things using "multireplace" without success...

 

Thanks for your help!

Link to comment
Share on other sites

In that scenario, assuming that it'll be the first value that's extended, you can do this:

{version:regexreplace:(\w\d)(\d+)(\d)(\d)$:$1.$2.$3.$4}

 

That'll allow the first digit to expand to as long as possible while requiring three more unique digits afterwards. v12345 would convert to v12.3.4.5 and v123456789 would convert to v123456.7.8.9

Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.