Thread: regex variable
View Single Post
Old 12-08-2012, 12:36 PM   PM User | #12
rdspoons
New Coder

 
Join Date: Jun 2009
Posts: 81
Thanks: 0
Thanked 8 Times in 8 Posts
rdspoons is on a distinguished road
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.
rdspoons is offline   Reply With Quote