Thanks, but it needs me to run it as admin, which I cannot.-kalos
And it's taken 4 pages to find that out - something that should have been stated earlier.
Any idea why the below does not work?
(gc *.xml) -match '(?s)<\?xml\ version="1\.0"\ encoding="UTF-8"\?>.+?</dbts:PmryObj>'
Sure.
Q: Whats's the input data?
A:
We don't know.Q: What's the command output?
A:
We don't know.Q: What version of Powershell are you using?
A:
We don't know.Q: What OS are you using, (including architecture)?
A:
We don't know.Q: What's the statistics of the input file, (eg. size)?
A:
We don't know.Q: Why the hell are you trying to process all files at once instead of one at a time?
A:
We don't know.etc, etc, etc, etc ... for 4 pages.
Idea:
We don't know.Why:
See point 1 here.