Is there something like Perls /e modifier in JavaScript to integrate simple arithmetic like multiplication and addition to a regular expression that is evaluated with the RegExp object?
I want to transfer a pattern for URL generation which may includes concatenation, multiplication and division of strings and replaced integer variables that is more secure than to transfer and evaluate Javascript code.