added support for splitting matches into an array, using regexp