Jump to content
Ketarin forum

My version ID regex for non-FileHippo sources


K3tchup
 Share

Recommended Posts

In case anyone has any use for it.

This is a core of a regex string that I use to catch version numbers:

 

(\d*\.?\d*\.?\d*\.?\d+\w?\s?\(?\w*\-?\w*\)?)

 

I modify it slightly for different programs. Change the place of brackets, add a prefix and/or suffix etc.

I know it wouldn't need to be this complex for most program entries but this is kind of a good copy paste solution for me.

It has limits but works for all my needs.

 

This for example works for Firefox and Thunderbird non-english versions:

 

your language.*?(\d*\.?\d*\.?\d*\.?\d+\w?\s?\(?\w*\-?\w*\)?)

Link to comment
Share on other sites

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.