title: Velocity split() and array display, concatenate syntax
body: <p>I am trying to work with Velocity, which is like programming with your feet. I'm fluent in JavaScript and PHP but not Java. So I need a little help figuring out the correct syntax for this. I've done some research but since I'm not familiar with Java and Velocity is cringy, I can't figure out the right syntax.</p>
  <p>I have a string, <strong>$string</strong> that is a url. I need to split it at the anchor # and reorganize it so that it will be in proper form for parameters and an anchor tag.</p>
  <p>WHAT I HAVE:</p>
  <p>URL ($string): <strong><a href="http://url.com#anchorlink" rel="nofollow noreferrer">http://url.com#anchorlink</a></strong></p>
  <p>PARAMETERS (plain text): <strong>?utm_campaign=abc&amp;utm_medium=def</strong></p>
  <p>WHAT I'M TRYING TO DO:</p>
  <p>Split the string at # and reconsitute the url to:</p>
  <p><strong><a href="http://url.com?utm_campaign=abc&amp;utm_medium=def#anchorlink" rel="nofollow noreferrer">http://url.com?utm_campaign=abc&amp;utm_medium=def#anchorlink</a></strong></p>
  <p>HERE'S WHAT I HAVE IN CODE that I need help putting into proper syntax (it's wrong here):</p>
  <pre><code>   &lt;div&gt;
      #set ($myArray = $string.split(&quot;#&quot;));
          &lt;a href = &quot;${myArray[0]}?utm_campaign=abc&amp;utm_medium=def${myArray[1]}&quot;&gt;
              Link Text
          &lt;/a&gt;
      &lt;/div&gt;
  </code></pre>
  <p>Thanks!</p>