Hello Miron,
> $output = Write-Output ( "?[^``{0}{0}{0}`r\(]" -f "`n" )
>
> I guess with workaround it's just a convenience. May be there is something
> quirky going on, worth checking? Will mark as completed.
I could reproduce the problem here (by the way, Write-Output does
nothing in your case, you can just as well use the operand directly).
It seems like something is going wrong in
StringExpressionHelper.ResolveEscapeCharacters. At least that's as far
as my debugging led me for now.
Regards,
Johannes