Speed up string replace with Classic ASP

I need to know if there is a way to replace a string in another string without using the string.replace available in classic ASP.
I have the following. I have an HTML template page for a mailer. The template has [[VARIABLE]] markers that need te be replaced for each user. With 10 000 users + the normail replace(HTMLBODY,"[[VARIABLE]]",varName) just takes forever.
OlineIAsked:
Who is Participating?
 
JoachimMartinsenConnect With a Mentor Commented:
No there isn't a better replace function.

What you could do is:
- split the template into smaller parts (e.g HTMLBODY1, HTMLBODY2...)
- run a replace only on the piece that contains the variable.
- put the pieces back together.

I you do so, the replace function will have less text to search through.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.