title: Compare two strings and match them regardless of order
body: <p>Given the following array:     </p>
  
  <pre><code>@array = ["012", "345", "678", "048", "246", "036", "147", "258"]
  </code></pre>
  
  <p>How could I check if the 3 digits in the variable, <code>@register</code>, matches any of the 3 digits in the array without caring about the order of said 3 digits?</p>
  
  <p>I.e. for [sic] <code>@register</code> with the values <code>"012"</code>, <code>"210"</code>, <code>"102"</code>, <code>"246"</code> and <code>"174"</code> will yield <code>true</code>, but <code>"014"</code> and <code>"247"</code> will not.</p>