Replaced for loop with Regex.simpleMatch with a variant which accepts an array
for completion fields, fielddata fields, types and groups
Added tests for all/one/multiple metrics with fields, groups, types