String manipulation - Javascript/JQuery : <p>can anyone help me with a project I am stuck on, iv'e tried to simplify what I'm trying to achieve as best I can.</p>

<p>I have an input that can be anything in this format <code>/_/_/_/_*</code></p>

<p>Using javascript/jquery I am trying to achieve something like the below. I don't know how best to approach it though</p>

<p>input = /user/app/folder/TOM*</p>

<p>output = <a href="https://myscript.com/user/assemblies/app/operations/environments/folder/" rel="nofollow noreferrer">https://myscript.com/user/assemblies/app/operations/environments/folder/</a></p>
