mattscotney
Programmer
Hi all,
I have the following string stored in an asp variable:
myString = "some regular html <script language =""javascript"" src = ""aVar.js""> some more html"
aVar.js contained within the string is a variable and will change(eg: aVar.js will not always be known as aVar.js, it could be named welcome.vbs, or wel.js or by any other name)
<script language =""javascript"" src = "" will always come before aVar.js and ""> will always come after.
How can I extract the aVar.js portion from the string and change it to myScript.js(string variable value) and replace it back in the string?
Thanks in advance,
Matt Scotney
I have the following string stored in an asp variable:
myString = "some regular html <script language =""javascript"" src = ""aVar.js""> some more html"
aVar.js contained within the string is a variable and will change(eg: aVar.js will not always be known as aVar.js, it could be named welcome.vbs, or wel.js or by any other name)
<script language =""javascript"" src = "" will always come before aVar.js and ""> will always come after.
How can I extract the aVar.js portion from the string and change it to myScript.js(string variable value) and replace it back in the string?
Thanks in advance,
Matt Scotney