title: Which RegExp template should I use for [some|text]?
body: <p>I have a string like <code>[some|text]</code>. Which RegExp template should I use?
  I have already tried <code>/\[.|.\]/gi</code> but it doesn't work.
  I need to do from <code>[https://google.com|Google]</code> this: <code>&lt;a href="https://google.com"&gt;Google&lt;/a&gt;</code>
  Can anyone help me?</p>