added support for arrays.
regexHell string is no longer relevant