title: How to get all sub-strings of a specific format from a string
body: <p>I have a large string and I want to get all sub-strings of format <code>[[someword]]</code> from it.<br>
  Meaning, get all words (list) which are wrapped in opening and closing square brackets. <br><br>
  Now one way to do this is splitting string by space and then filtering the list with this filter but the problem is some times <code>[[someword]]</code> does not exist as a word, it might have a <code>,</code>, space or <code>.</code> right before of after it.<br><br>
  What is the best way to do this? <br><br></p>
  <blockquote>
  <p>I will appreciate a solution in Scala but as this is more of a programming problem, I will convert your solution to Scala if it's in some other language I know e.g. Python.</p>
  <p>This question is different from marked duplicate because the regex needs to able to accommodate characters other than English characters in between the brackets.</p>
  </blockquote>