posted 20 years ago
Is there any way to create a dynamic regular expression? For example, I have the following code:
I would like to use the constant values defined to create the regular expression. Something like: var regexp = / + ACTIVE + /g;
However, this does not work. Any suggestions?