Here is a live example you can check out: http://jsfiddle.net/R7KuK/
In an attempt to create an array of full regular expressions with regex delimiters and set flags, I've noticed that the RegExp object is interpreting given strings as strings rather than regular expressions.
var regex = "/wolves/i"
as opposed to
var regex = /wolves/i
So, my main question is: How can I convert string-based regular expressions into actual regular expressions?
UPDATE: Thanks to the explanation provided by Felix King, it was clarified to me that
var array = ["/wolves/i", "/Duck/"];
can be safely converted to:
var array = [/wolves/i, /Duck/];