Skip to content

Instantly share code, notes, and snippets.

@talkingmoose
Last active August 23, 2019 16:54
Show Gist options
  • Select an option

  • Save talkingmoose/9db570eefd688de384f8cc63e7fe3868 to your computer and use it in GitHub Desktop.

Select an option

Save talkingmoose/9db570eefd688de384f8cc63e7fe3868 to your computer and use it in GitHub Desktop.
Regex strings to identify Office for Mac 2016 and 2019 versions.
version list for testing:
17.0.0
16.99.1
16.90
16.22
16.16.11
16.16.10
16.16.7
16.21.1
16.21
16.16.6
16.20.1
16.20
16.16.5
16.19
16.16.4
16.18
16.16.3
16.17.1
16.17
16.16.2
16.16.1
16.16
16.15
16.14.1
16.14
16.13.1
16.13
16.12.0
16.11.1
16.11
16.10
16.9.1
16.9
15.41
15.11.1
15.11
15.10
15.9
Office 2019 (16.17 and higher)
^16\.(1[7-9].*|[2-9][0-9].*)
version list matches:
16.21
16.20.1
16.20
16.19
16.18
16.17.1
16.17
Office 2016 (15.9 through 16.16.x)
^1(5.*|6\.(9$|9\.1|1[0-6].*))
version list matches:
16.16.11
16.16.10
16.16.7
16.16.6
16.16.5
16.16.4
16.16.3
16.16.2
16.16.1
16.16
16.15
16.14.1
16.14
16.13.1
16.13
16.12.0
16.11.1
16.11
16.10
16.9.1
16.9
15.41
15.11.1
15.11
15.10
15.9
Microsoft AutoUpdate (4.14 and higher)
4\.([1-9][4-9]+|[2-9][0-9]).*
version list matches:
4.14
4.15.1
4.16
4.20
4.25.1
4.30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment