title: Parsing a file with following a pattern
body: <p>I need to parse a file with a mediawiki syntax (tables). </p>
  
  <p>I know sed or awk could do it but I'm no expert of these. </p>
  
  <p>I need to find the following pattern :</p>
  
  <pre><code>beginning_of_line| [[text]] ||  random_stuff_until_newline
  </code></pre>
  
  <p>There might be (or not) space between the pipes and the brakets. And I need a output the text </p>
  
  <p>Any solutions for me ? </p>
  
  <p>Thx </p>