title: Use the split function or regex expression in python to remove strings between two other symbols
body: <p>I have the following set of strings in a txt file (archiveONE.txt), where I would like to extract what is between [||||]:</p>
  
  <pre><code>[||||]87[||||]2125[||||]1648[||||]2019-04-04 20:17:44[||||]
  bla bla bla
  bla bla bla
  [||||]85[||||]3068[||||]1648[||||]2019-04-04 21:11:44[||||]
  bla bla bla
  bla bla bla
  </code></pre>
  
  <p>the end result should be this:</p>
  
  <pre><code>87 2125 1648 2019-04-04 20:17:44 
  bla bla bla
  bla bla bla
  85 3068 1648 2019-04-04 21:11:44 
  bla bla bla
  bla bla bla
  </code></pre>
  
  <p>I tried to use the split function in python, but the allowed parameters are few or I didn't get it right: </p>
  
  <pre><code>import glob, os, re
  from re import sub
  
  fp = open("archiveONE.txt", 'r', -1)
  codes= fp.readlines()
  for i in codes:
       print(i.split("[",4))
  </code></pre>
  
  <p>I also tried to use Regex expression but something didn't work:</p>
  
  <pre><code>codes = re.sub('(?&lt;=\/[*)[\s\S]*?(?=]*\/)', '', codes)
  </code></pre>
  
  <p>Could someone help me find a solution?</p>