src/index.js
function extractGroup (xml, tagName) {
  var itens = []
  var regex = new RegExp(`<${tagName}.+?>(.+?)</${tagName}>`, 'gi')
  var result = ''
  for (result = regex.exec(xml); regex.lastIndex !== 0; result = regex.exec(xml)) {
    itens.push(result[0])
  }

  return itens
}
function extractGroup (xml, tagName) {
  var itens = []
  var regex = new RegExp(`<${tagName}.+?>(.+?)</${tagName}>`, 'gi')
  var result = ''
  for (result = regex.exec(xml); regex.lastIndex !== 0; result = regex.exec(xml)) {
    itens.push(result[0])
  }

  return itens
}
function extractGroup ( xml , tagName ) { var itens = [ ] var regex = new RegExp ( ` ${ tagName } ${ tagName } ` , 'gi' ) var result = '' for ( result = regex . exec ( xml ) ; regex . lastIndex !== 0 ; result = regex . exec ( xml ) ) { itens . push ( result [ 0 ] ) } return itens }
Extract group of tags

@param      {<string>}  xml      The xml
@param      {<string>}  tagName  The tag name
Extract group of tags