title: How to split string according to regex in bash script
body: <p>I have such a string:<br></p>
  
  <pre><code>msg='123abc456def'
  </code></pre>
  
  <p>Now I need to split <code>msg</code> and get the result as below:<br></p>
  
  <pre><code>['123', 'abc', '456', 'def']
  </code></pre>
  
  <p>In python, I can do like this:<br></p>
  
  <pre><code>pattern = re.compile(r'(\d+)')
  res = pattern.split(msg)[1:]
  </code></pre>
  
  <p>How to get the same result in bash script?<br>
  I've tried like this but it doesn't work:<br></p>
  
  <pre><code>IFS='[0-9]'    # how to define IFS with regex?
  echo ${msg[@]}
  </code></pre>