Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^\d{4}.*CSI.*\"(.*)\"\sof\s(.*?)\,\sVersion\s=\s(.*?)\,\spA\s\=\s(?:.*?\_)+([A-Z]{4,5}).*?\,\sCulture\s(?|(?==).*?\]\"(.*?)\"|(\w*))\,\sVersionScope\s(?|(?=\=)\=\s.(.*)|(\w*))\,\sPublicKeyToken\s\=\s\{.+\:(.*?)\}.*
/
gmi

Description

Decodes the Windows Winsxs folder names of files that could not be repaired from the CBS.log after unsuccessful scan with SFC. It does not include the random number assigned by the system, of course. Just replace If processor architecture is INTEL change to x86 or x64 depending on your system. And if culture is neutral change to none.

Submitted by anonymous - 7 years ago