Phillp M,
sorry, my attempt at humor did not show through - should have used a

.
Quote:
|
string.replace(eval("/"+somevar+"/gi"),"replacementString")
|
Quote:
|
And replacementString is a literal, not a variable.
|
Yes, replacementString is a literal. somvar is the variable.
Again, thanks for the feedback.