I have a working example here: http://jsfiddle.net/R7KuK/
I've tried to create an array containing full regular expressions with regex delimiters and set flags, but the RegExp object parses given strings as strings, not as regular expressions.
var regex = "/wolves/i"
vs.
var regex = /wolves/i
My question is: How do I convert string-ed regex into an actual regular expression?
UPDATE: It wasn't until Felix King kindly explained to me that
var array = ["/wolves/i", "/Duck/"];
can safely become:
var array = [/wolves/i, /Duck/];