Soldato
I'm trying to find the easiest way to strip out strings which match S-1-5-21-* (stale user SID) from a space deliminated column where there could be multiple matches.
Looking at PATINDEX,SUBSTRING,REPLACE or some elements of REGEX perhaps.
TIA, Paul.
Code:
Orange paul john david
Apple Paul S-1-5-21-100-123-43211 john
Banana S-1-5-21-321-999-65123 lisa emma S-1-5-21-321-999-65111
Carrot S-1-5-21-321-222-11111
>
Orange paul john david
Apple Paul john
Banana lisa emma
Carrot
TIA, Paul.