match multi-line string
<p>I am using a PowerShell command to find all *.vue files (it's a simple text format) in a directory, where I need to match this:</p>

<pre>7,Id
6,Default</pre>

<p>So, these are 2 consecutive lines. With Notepad++ I see CRLF at the end of the line. Following Google searches, this must be close:</p>

<pre><code>Get-ChildItem "D:\Wim\TM1\TI processes" -Filter *.vue -Recurse |
  Select-String -Pattern "7,Id\r\n6,Default" -CaseSensitive |
  Out-File C:\test.txt
</code></pre>

<p>But it does not find the files. I checked that I can find the first part (<code>7,Id</code>) correctly, and also the second part (<code>6,Default</code>), but the combination with the newline is not working.</p>

<p>Any ideas please? Maybe an alternative?</p>

<p>I can have a workaround but it's inefficient and a lot of coding. For example, I could use PowerShell to provide a list of only the first sentence, then process these files to see if it matches the second sentence as well. I want to avoid that.</p>