String being searched
"ran into (something-big) issues do something else bla bla, see log file: "
Pattern should find "(something-big) issues" exact substring, if it exists.
How do I allow parens in the regex pattern
This pattern i've tried fails
\b\(something-big\) issues\b
eg.
$str2 = "ran into (something-big) issues do something else bla bla, see log file: ";
if($str2 -match '\b\(something-big\) issues\b' ) {
Write-Output "we found it";
}
else{
Write-Output "nope";
}