I've made this tool, that every file generate a code, so to speak.
Using regExp, I want to replacce this code with the accurate path to the file itself.
As example, PNG_VLXDIZ is a generic code for a PNG-file with six random characters.
Why is application not working with regExp!? These are the same varType, = 8 (string). What else is there to think of!? I'm lost...!
The application method seems not to work with regular expressions. Why is that!? I've though of alternatives but so far are these failing as well...!
[pre]
' ## SET application data:
' ## This is made in a loop.
application("PNG_VLXDIZ") = "4711.png"
' ## SELECT PHOTO
re.Pattern = "((PNG_|JPG_)[A-Z]{6})"
strText = re.Replace(strText, "<img src=""" & application("$1") & """>" )
strText = Replace(strText, mDelimit, "" )
convertLink = strText
[/pre]
Using regExp, I want to replacce this code with the accurate path to the file itself.
As example, PNG_VLXDIZ is a generic code for a PNG-file with six random characters.
Why is application not working with regExp!? These are the same varType, = 8 (string). What else is there to think of!? I'm lost...!
The application method seems not to work with regular expressions. Why is that!? I've though of alternatives but so far are these failing as well...!
[pre]
' ## SET application data:
' ## This is made in a loop.
application("PNG_VLXDIZ") = "4711.png"
' ## SELECT PHOTO
re.Pattern = "((PNG_|JPG_)[A-Z]{6})"
strText = re.Replace(strText, "<img src=""" & application("$1") & """>" )
strText = Replace(strText, mDelimit, "" )
convertLink = strText
[/pre]