title: Powershell how to split string after or before ('/')
body: <p>I have a usecase that I would like to split. Below is the output of a program in a txt file. I need the VALUE part alone to be written in another txt file to be read by another process.<br></p>
  
  <p><b>OUTPUT: "Id": "/Name/VALUE", </b> <br></p>
  
  <p>I tried</p>
  
  <pre><code>$text.split('/')[1].split(' ')
  </code></pre>
  
  <p>but it resulted in giving me "Name"<br>On the whole, what am I doing is</p>
  
  <pre><code>$text = Get-Content C:\temp\file.txt
  $text.split('/')[1].split(' ') | Out-File C:\temp\file1.txt
  </code></pre>