title: Ssearching for string containing newline character in powershell
body: <p>I would like to detect if the string in line 1 is present in filename without confusing it with the string in line 2 since the text in line 1 is a substring of the text in line 2. I have tried the code below but it is not detect it correctly. </p>
  
  <p>My powershell script:</p>
  
  <pre><code>$s1 = 'Hello world'
  $s2 = "`n"
  [int]$result = Get-Content filename | Select-String $s1+$s2 -quiet
  Write-Host "result : " $result
  </code></pre>
  
  <p>Where the content of the filename is:</p>
  
  <pre><code>"line1: xxxxxx Hello world"
  "line2: yyyyyy Hello world and some more text"
  </code></pre>