REGEX-Escape for: Connect-CWM -Server:$CWMServer -Company:$CWMCompany -Credentials:$CWMCredential...

Your Input:
Result, the escaped string:
Connect\-CWM \-Server\:\$CWMServer \-Company\:\$CWMCompany \-Credentials\:\$CWMCredentials \-clientId\:\$CWMClientID \-Force

What must the escaping look like for:
Connect-CWM -Server:$CWMServer -Company:$CWMCompany -Credentials:$CWMCredentials -clientId:$CWMClientID -Force

The excaped text for use in a regex is:
Connect\-CWM \-Server\:\$CWMServer \-Company\:\$CWMCompany \-Credentials\:\$CWMCredentials \-clientId\:\$CWMClientID \-Force


Ads