title: regex for replace words inside text by another words
body: <p>I have a text string i want to replace it by another text using regexp</p>
  
  <p>Means each word replaced with a specific word</p>
  
  <pre><code>input= Jounal Page Year DOI Roche-Link
  </code></pre>
  
  <p>my expected output</p>
  
  <pre><code>output = Publication Title Pagination Publication Date Digital Object Identifier Roche Link
  </code></pre>
  
  <p>Journal replace by Publication Title</p>
  
  <p>Page replace by Pagination</p>
  
  <p>Year replace by Publication Date</p>
  
  <p>DOI replace byDigital Object Identifier</p>
  
  <p>Roche-Link replace by Roche Link</p>
  
  <ul>
  <li>my regex=\b(Journal|Year|Page|DOI|Roche-Link)\b</li>
  </ul>
  
  <p>my regexp Detect all the specific words but I didn't find a solution using <code>$</code> to replace each word the with the specific word</p>
  
  <pre><code>output = input.replace(/\b(Journal|Year|Page|DOI|Roche-Link)\b/g, (Publication Title)+$1, (Pagination)+$2,(Publication Date)+$3,(Digital Object Identifier)+$4,(Roche Link)+$5)
  </code></pre>