title: Split string and just get number in python?
body: <p>I have a string like <code>"GoTo: 7018 6453 12654\n"</code> I just want get the number something like this <code>['7018', '6453', '12654']</code>, I tries regular expression but I can't split string to get just number here is my code:</p>
  
  <p>Sample 1:</p>
  
  <pre><code>splitter = re.compile(r'\D');
  match1 = splitter.split("GoTo: 7018 6453 12654\n")
  
  my output is: ['', '', '', '', '', '', '', '', '7018', '6453', '12654', '']
  </code></pre>
  
  <p>Sample 2:</p>
  
  <pre><code>splitter = re.compile(r'\W');
  match1 = splitter.split("GoTo: 7018 6453 12654\n")
  
  my output is: ['GoTo', '', '7018', '6453', '12654', '']
  </code></pre>