Skip to main content

Got Regex?


Good sir, you have saved me from a google search. Thank you.


 


Looks like this year the ax is being lenient on the Macs. 


Good sir, you have saved me from a google search. Thank you.


 


Looks like this year the ax is being lenient on the Macs. 


Yeah, looks like some MacBook Airs 2018 & 2019 only took a hit.


@talkingmooseusually has regex for model and OS compatibility.   It least that is where I have gotten mine in the past.  Credit to @talkingmoose .


Found this on slack yesterday, I have not tested it, but it seems like it should work. 


devices "does not match". 


^(iMac([1-9]|1[1-8]),|Macmini[1-7],|MacPro[1-6],|MacBook([1-9]|10)|,|MacBookAir[1-8],|MacBookPro([1-9]|1[1-4]),)

 


Yeah, looks like some MacBook Airs 2018 & 2019 only took a hit.


To be fair, I think they deserved the hit lol. Not connecting the heat sync to the CPU really killed those things.


This is a pretty useful EA

https://github.com/MLBZ521/MacAdmin/blob/master/Jamf%20Pro/Extension%20Attributes/Get-LatestOSSupported.sh


Found this on slack yesterday, I have not tested it, but it seems like it should work. 


devices "does not match". 


^(iMac([1-9]|1[1-8]),|Macmini[1-7],|MacPro[1-6],|MacBook([1-9]|10)|,|MacBookAir[1-8],|MacBookPro([1-9]|1[1-4]),)

 


That string doesn't seem to work. This works for incompatible.
Model Identifier matches regex:

^(MacPro[1-6],[0-9]|iMac([1-9]|1[0-8]),[0-9]|Macmini[1-7],[0-9]|MacBookAir[1-8],[0-9]|MacBookPro([1-9]|1[0-4]),[0-9])