Hope someone could help me with my problem. I am trying to use same pattern for capturing same group in a range of text for all values fields.

I try to capture every "value" only related for attribute\_2 from the html.
This is my approcah:
 <https://regex101.com/r/z5T20g/2>

```
<select id="product_attribute_1">
  <option value="1">2.2 GHz</option>
  <option value="2">2.5 GHz</option>
</select>
<select id="product_attribute_2">
  <option value="3">2GB</option>
  <option value="4">4GB</option>
  <option value="5">8GB</option>
</select>

product_attribute_2[\s\S]*"(\d+)"[\s\S]*select> ---this show last match (5)
product_attribute_2[\s\S]*?"(\d+)"[\s\S]*select> --this first (3)

```

How can I extract all values (3,4,5)? There is could be different amount of values. Help please )

P.S. I am not trying to parse html with regex. This values is used in Gatling script.
I was using this example for collecting unique attributes. Think in my case I can use something like this. 

```
\b(product_attribute_\d)(?![\s\S]*?\b\1)

```

I use regex for extracting values from response body in Gatling tool (Scala).
This will save all values to List.
 [![enter image description here](https://i.stack.imgur.com/2jD1F.png)](https://i.stack.imgur.com/2jD1F.png)

Make it through css-selector 

```
select[id='product_attribute_2'] [value]

```