Alternate of split and merge in javascript
<p>Input: "https://localhost:8181/View/Statement.aspx"; </p>

<p>Output: <a href="https://localhost:8181/View" rel="nofollow">https://localhost:8181/View</a>; </p>

<p>Apart from using the split function and then merging by using the array index, is there any efficient way available in java script for achieving the same?</p>

<p>If so, please demonstrate .</p>

<p>Thanks in advance</p>
