artilleryio / artillery-core

artillery-core - deprecated
Mozilla Public License 2.0
29 stars 105 forks source link

Allow passing variable of array back for global regexp #220

Closed markwylde closed 2 months ago

markwylde commented 6 years ago

If you use a capture, like the following, you can have multiple matches for the one regexp.

- regexp: name="names\[\]" value="(.)"
  flags: g
  group: 1
  as: "names"

This change allows names to be an array of multiple items if the g flag is given.