title: regular expression usage with [word1][wor2]
body: <p>I have a pattern like <code>[word1][wor2]</code>. I want to replace to <code>{@link word2|word1}</code>, word1, word2 could be anything.</p>
  
  <p>I am very bad on using regular expression. Could anyone help me use regular expression match the pattern and replace to new pattern.</p>
  
  <p>Thanks in advance.</p>