How can I extract a substring using PowerShell?
I have this string ...
\"-----start-------Hello World------end-------\"
I have to e
Since the string is not complex, no need to add RegEx strings. A simple match will do the trick
$line = "----start----Hello World----end----" $line -match "Hello World" $matches[0] Hello World $result = $matches[0] $result Hello World