title: Preg_split & Regex - Removing brackets, text and colons
body: <p>I am trying to understand how to split a string using a regex and preg_split, but I can't seem to understand the explanations online.
  Especially the selector for the brackets seems to be impossible to create.</p>
  
  <p>I am trying to do 2 different kinds of splits. Examples below:</p>
  
  <ol>
  <li><code>"[group:text]" -&gt; "text"</code></li>
  <li><code>"icon_type:[search]:[asterisk]" 
   -&gt; array of 3 variables: [0]-&gt;"icon_type"
                            [1]-&gt;"search"
                            [2]-&gt;"asterisk"</code></li>
  </ol>
  
  <p>What are the two regex's to do this?</p>
  
  <p>Ive tried the following for example 1: <code>/\[(group:)\]/</code>, sadly this removes nothing.</p>