title: Creating a Regex That Applies to multiple lengths of strings and characters
body: <pre><code>PLAY [[B2 C3# D3 D3# ]]
  PLAY [[A1 A1# B1 D1# E1 F1 F1# G1 A2 B2 F2# G2 C3 C3# D3 D3# ]]
  </code></pre>
  
  <p>I need to create a regex (with the ultimate purpose of removing "PLAY" and "[[]]" from all lines of a text file. The insides of the brackets will vary with each line, so how do I create a regex match pattern to return only the group within the brackets for each line?</p>
  
  <p>Any help is appreciated, I'm kind of a noob with this.</p>