<%
theString = "A lot of information is here, and we just want to get this one string and post back it''s data to the page. We are hunting for [image:filename.jpg] and then we are going to work with it on the page."
fileName = Split(Split(Split(theString, "[image") (1), "]") (0), ":") (1)
response.write "theString = " & theString & "<br>fileName = " & fileName
%>
<%
theString = "This string does not have an image tag in it, so it is not going to result in nothing from the SPLIT."
fileName = Split(Split(Split(theString, "[image") (1), "]") (0), ":") (1)
response.write "theString = " & theString & "<br>fileName = " & fileName
%>
How would you bypass this function IF there i no image tag in the string?we will need to have a pattern for parse the string. so we gonna built that logic for text extraction.
[image:imagename.jpg]
I am generating the Image and users name.[image:username|imagename.jpg]
And then processing it out in the code.
I changed it up a little, to make sure that it only grabs that tag.
fileName = Split(Split(Split(theStrin
Works great.
Much appreciated.
Wayne