Create regex for converting parameter string to an array.