function extractActions(string) {
  // get individual actions
  let actionStrings = string.match(/#\w*\[([^\]]+)]/g) || []

  // parse actions
  let extractedActions = actionStrings.map(actionString => {
    return parseAction(actionString)
  })

  return extractedActions
}
Extracts actions from the string, e.g. ... #show({firstName}.length > 3)

@param {String} string
@returns {Array}