What Flavor of RegEx?

adroitus
New Contributor II

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.

Mac user since 1988.
1 ACCEPTED SOLUTION

talkingmoose
Moderator
Moderator

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!

View solution in original post

4 REPLIES 4

shaquir
Contributor III

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.

talkingmoose
Moderator
Moderator

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!

L-plateAdmin
Contributor

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

adroitus
New Contributor II

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.

Mac user since 1988.