Skip to content

Instantly share code, notes, and snippets.

@talkingmoose
Last active June 7, 2023 19:50
  • Star 16 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save talkingmoose/794f7647e7a29d6ef74f8b9233dd44bb to your computer and use it in GitHub Desktop.
Regex looks for all Mac models compatible with macOS Big Sur. May not be up-to-date with newly released models.
Model information: https://support.apple.com/en-us/HT211238
Published Date: October 25, 2021
Verification: https://regex101.com/r/7nnq4T/13
This regex is complete. Apple is no longer creating Big Sur compatible Macs.
(MacBook(10|9|8)|MacBookAir(10|[6-9])|MacBookPro1[1-7]|Macmini[7-9]|MacPro[6-7]|iMacPro1),\d|iMac(14,4|1[5-9],\d|2[01],\d)
MacBook
https://support.apple.com/en-us/HT201608
Supported:
MacBook10,1
MacBook9,1
MacBook8,1
Unsupported:
MacBook7,1
MacBook6,1
MacBook5,2
MacBook5,1
MacBook4,1
MacBook3,1
MacBook2,1
MacBook1,1
---------------------------------------------------
MacBook Air
https://support.apple.com/en-us/HT201862
Supported:
MacBookAir10,1
MacBookAir9,1
MacBookAir8,2
MacBookAir8,1
MacBookAir7,2
MacBookAir7,2
MacBookAir7,1
MacBookAir6,2
MacBookAir6,1
MacBookAir6,2
MacBookAir6,1
Unsupported:
MacBookAir5,2
MacBookAir5,1
MacBookAir4,2
MacBookAir4,1
MacBookAir3,2
MacBookAir3,1
MacBookAir2,1
MacBookAir1,1
---------------------------------------------------
Mac Book Pro
https://support.apple.com/en-us/HT201300
Supported:
MacBookPro17,1
MacBookPro16,4
MacBookPro16,3
MacBookPro16,2
MacBookPro16,1
MacBookPro15,4
MacBookPro15,3
MacBookPro15,2
MacBookPro15,1
MacBookPro14,3
MacBookPro14,2
MacBookPro14,1
MacBookPro13,3
MacBookPro13,2
MacBookPro13,1
MacBookPro11,5
MacBookPro11,4
MacBookPro12,1
MacBookPro11,3
MacBookPro11,2
MacBookPro11,1
Unsupported:
MacBookPro10,2
MacBookPro10,1
MacBookPro9,2
MacBookPro9,1
MacBookPro8,3
MacBookPro8,2
MacBookPro8,1
MacBookPro7,1
MacBookPro6,2
MacBookPro6,1
MacBookPro5,5
MacBookPro5,4
MacBookPro5,3
MacBookPro5,2
MacBookPro5,1
MacBookPro4,1
MacBookPro3,1
MacBookPro2,2
MacBookPro2,1
MacBookPro1,2
MacBookPro1,1
---------------------------------------------------
Mac mini
https://support.apple.com/en-us/HT201894
Supported:
Macmini9,1
Macmini8,1
Macmini7,1
Unsupported:
Macmini6,2
Macmini6,1
Macmini5,3
Macmini5,2
Macmini5,1
Macmini4,1
Macmini3,1
Macmini2,1
Macmini1,1
---------------------------------------------------
iMac
https://support.apple.com/en-us/HT201634
Supported:
iMac21,1
iMac20,2
iMac20,1
iMac19,2
iMac19,1
iMac18,3
iMac18,2
iMac18,1
iMac17,1
iMac16,2
iMac16,1
iMac15,1
iMac14,4
Unsupported:
iMac14,3
iMac14,2
iMac14,1
iMac13,2
iMac13,1
iMac12,2
iMac12,1
iMac11,3
iMac11,2
iMac11,1
iMac10,1
iMac9,1
iMac8,1
iMac7,1
iMac6,1
iMac5,2
iMac5,1
iMac4,2
iMac4,1
iMac,1
---------------------------------------------------
iMac Pro
https://support.apple.com/en-us/HT210222
Supported:
iMacPro1,1
---------------------------------------------------
Mac Pro
https://support.apple.com/en-us/HT202888
Supported:
MacPro7,1
MacPro6,1
Unsupported:
MacPro5,1
MacPro4,1
MacPro3,1
MacPro2,1
MacPro1,1
@grahampugh
Copy link

This is the reverse regex - has the advantage that it will not go out of date when new models are released:

^(iMac[1-9],|iMac1[0-4],[0-3]|MacBook[1-7],|MacBookAir[1-5],|MacBookPro[1-9],|Macmini[1-6],|MacPro[1-5],)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment