. .
Printable View
. .
The statement "apply a regular expression to an array" makes absolutely no sense. I have no idea what your example is supposed to mean either, especially when you consider that there is not even a regular expression present. You can obviously loop through each element of an array of strings and apply a regex in sequence.