title: Regex to replace all occurrences of single character within specific tokens
body: <p>I would like to know if a single set of regex search/replace patterns could be used to replace all occurrences of a specific character inside a string contained within 2 tokens. </p>
  
  <p>For example, is it possible to replace all periods with spaces for the text between TOKEN1 &amp; TOKEN2 as in the example below?</p>
  
  <p>So that:</p>
  
  <pre><code>TOKEN1:Run.Spot.run:TOKEN2
  </code></pre>
  
  <p>is changed to:</p>
  
  <pre><code>TOKEN1:Run Spot run:TOKEN2
  </code></pre>
  
  <p>NOTE: The regular expression would need to be capable of replacing any number of periods within any text, and not just the specific pattern above.</p>
  
  <p>I ask this question more for my personal knowledge, as it is something I have wanted to do quite a few times in the past with various regex implementations. In this particular case, however, the regex would be in php. </p>
  
  <p>I am not interested in php workarounds as I know how to do that. I am trying to expand my knowledge of regex.</p>
  
  <p>Thanks</p>