Posted on 06-11-2020 08:14 AM
Does anyone know what flavor of regex is used by Jamf Pro? I've been using PCRE for my patterns, and haven't had any problems (that I know of,) but would like to get official confirmation just to be sure.
Solved! Go to Solution.
Posted on 06-11-2020 12:36 PM
From past research, I've discovered we're using the Java regex engine and in developer notes I've read, they were using https://www.freeformatter.com/java-regex-tester.html for testing and validation.
And thank you, @shaquir, for the kind words!
Posted on 06-11-2020 08:59 AM
Hi @adroitus ,
I'm not sure, but @talkingmoose may have the specifics. He has a fantastic Regex script on his Github Match Version Number or Higher.bash.
Posted on 06-11-2020 12:36 PM
From past research, I've discovered we're using the Java regex engine and in developer notes I've read, they were using https://www.freeformatter.com/java-regex-tester.html for testing and validation.
And thank you, @shaquir, for the kind words!
Posted on 09-15-2020 02:37 AM
Will second the use of the free formatter tool as we needed to make a regex to match a bunch of Minis via serial number in two places to exclude some build items for a specific project.
its a shame that the its all binary regex generator that works from plain text which at least gave me a start being having to force my head around it when it wasn't the right type of regex, no idea which one it is
09-28-2021 08:48 AM - edited 09-28-2021 08:49 AM
Thank you for that, @talkingmoose. I'll start using the Java flavor from now on. I've been using the one at Regular Expressions 101. It allows you to choose your flavor, and save and share your patterns, which is nice since I do iterations of a few patterns.