title: Unable to generate regex for the string
body: <p>I have a string <code>abc-[|123|243|]-xyz-[|432|567|]</code> and I want to generate a regex that matches the specific string.</p>
  <p>The regex should be tested against the following examples and with the specific result.</p>
  <p>Exp 1: <code>abc-[|123|234|]-xyz-[|432|567|]</code> (<code>123</code> is present in <code>[|123|243|]</code>)</p>
  <p>Result : <strong>Match</strong></p>
  <p>Exp 2: <code>xyz-[|123|243|]-abc-[|432|567|]</code> (order of <code>abc</code> and <code>xyz</code> interchanged)</p>
  <p>Result : <strong>No match</strong></p>
  <p>Exp 3: <code>abc-[|243|563|]-xyz-[|432|567|]</code> (<code>243</code> and <code>432</code> are present)</p>
  <p>Result : <strong>Match</strong></p>
  <p>Exp 4: <code>xyz-[|143|434|]-abc-[|432|999|]</code> (<code>[|148|434|]</code> not match of any number in  <code>[|123|243|]</code>)</p>
  <p>Result : <strong>No match</strong></p>
  <p>I tried creating a regex but its only working in the exact case and not working in other cases.</p>
  <p><code>abc-\[\|123\||243\|\]-xyz-\[\|432\||567\|\]</code></p>