title: Get strings for some specific region
body: <p>I need to use the powershell code to get the string of some specific area</p>
  
  <p>please see the picture below, the content of the green rectangle needs to be retained, and all other strings are deleted.</p>
  
  <p>I added some substrings in the second area. They look more complicated. I want to know if I can extract the desired data at once.</p>
  
  <p>Need to get the data:</p>
  
  <p>--------[ abc不好 ]</p>
  
  <p>[ c高速缓存 / L1-Cache ]</p>
  
  <p>[ 内存阵列 / System Memory ]</p>
  
  <p>--------[ 太好cde ]</p>
  
  <p><a href="https://i.stack.imgur.com/grflM.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/grflM.gif" alt="enter image description here"></a></p>
  
  <pre><code>--------[ 好吗 ]----------------------------------------------------------------------------------------------
  
      string1                                              description1
      string4                                          ---[ 太好了 ]----description4好
  
  --------[ abc不好 ]----------------------------------------------------------------------------------------------------
  
    [ a系统 ]
  
      系统:
        制造商                                            Intel Corporation
        产品                                              HuronRiver Platform
  
  
    [ 主板 ]
  
      主板:
        制造商                                            Intel Corp.
        产品                                              Emerald Lake
        版本                                              V1.24                                       
  
    [ c高速缓存 / L1-Cache ]
  
      高速缓存:
        类型                                              数据
        状态                                              已启用
  
  
    [ 高速缓存 / L2-Cache ]
  
      高速缓存:
        类型                                              数据
        状态                                              已启用
  
    [ d高速缓存 / L3-Cache ]
  
      高速缓存:
        类型                                              Unified
        状态                                              已启
  
    [ 内存阵列 / System Memory ]
  
      内存阵列:
        位置                                              主板
        内存阵列功能                                      系统内存
  
    [ 内存设备 / ChannelA-DIMM0 ]
  
      内存设备:
        形状特征                                          SODIMM
        类型                                              DDR3
  
  
  --------[ cde好 ]---------------------------------------------------------------------------------------------------------
  
      好string1                                              description1
      string3                                              description3
      string4                                          ---[ 太好了 ]----description4好a
  
  
  --------[ 太好cde ]----------------------------------------------------------------------------------------------------
  
  
      了string1                                              description1
      string3                                              description3
      string4                                          ---[ 太好了 ]----description4好b
  
  
  --------[ hef好 ]----------------------------------------------------------------------------------------------------
  
      好string1                                              description1
      string3                                              description3
      string4                                          ---[ 太好了 ]----description4好
  </code></pre>