I have a somewhat particular situation I couldn't find answers to through google.
I need to query my active directory for users whose SAMAccountName fits a particular pattern (3 letters followed by 4 digits).
Currently I pull the entire list of users and filter it with regex client-side.
Can this somehow be done directly in the query so that only users with that matching field are returned from the server in the first place?