Community Patterns

Community Library Entry

1

Regular Expression
Created·2025-07-24 00:33
Updated·2025-08-01 01:11
Flavor·PCRE2 (PHP)

/
(?:(?:State:(\/.*?\/)?)(([[:xdigit:]]{8})(-(([[:xdigit:]]{4})-){3}).{12})(\/*([[:alnum:]])+)?\W*?)
/
ig
Open regex in editor

Description

Depending on RE parser, you will be left with MacOS scutil service keys (UUIDs) and their servicetag, if any.

Developed while working on a very elusive problem

Submitted by MW