title: ColdFusion ReReplace
body: <p>What I'm trying to do is add forward slash to the beginning and end of a string of text if the first and last character of the string is not <code>/</code>.</p>
  
  <p>In my script I have:</p>
  
  <pre><code>if(!reFind('\/\S\/', myString){
      myString = '/' &amp; arrayToList(listToArray(myString, '/\'), '/') &amp; '/');
  }
  </code></pre>
  
  <p>I want to run a ReReplace instead of listing to an array and then adding the slashes in.</p>