title: Regex that repeats two capturing groups indefinitely (or puts an or between two capturing groups)
body: <p>I'm trying to capture this string with a regex:</p>
  <p>'random words here [[word|another bit]] more random words [[another word|another]] more random words |'</p>
  <p>The important thing is that it ends on a '|'. So any '|' within the regex must be within [[ ]]. I constructed a regex that captures '[[word|another bit]]', but the problem is that this group needs to be repeated indefinitely, with random words in between the group matching. Can I use an or between capturing groups?</p>
  <p>Like ((random words regex) | ([[ ]] regex))*</p>
  <p>?   it doesn't seem to be working.</p>