Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using application("something") along with regular expressions

Status
Not open for further replies.

krabban

Programmer
Oct 18, 2003
131
SE
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]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top