Can someone give me a hand in creating a regex string to match the first 3 entries, but omit the one that includes "_Classes".
Sample data set
S-1-5-21-1562028002-2160284861-498729489-2544
S-1-5-21-1562028002-2160284861-498729489-5555
S-1-5-21-1562028002-5623562356-895838383-7777
S-1-5-21-1562028002-5623562356-895838383-7777_Classes
This seems to match everything. How could it be modified to not match the similar string which includes "_Classes" ?
\D\-\d{1}\-\d{1}\-\d{2}\-\d{10}\-\d{10}\-\d{9}\-\d{4}
$
to the end of your regex. – PM 77-1| Where-Object { $_ -as [System.Security.Principal.SecurityIdentifier] }
instead of regex ? – Santiago Squarzon\b
at the end of your regex there. – TheMadTechnician