I can have as input the following list:
V1, V2, V3, V4, V5, V6, V7, V8, V9, V10
I would need a regex that extracts the last 3 elements from the list above.
So after applying the regex the list should look like: V8, V9, V10
I have tried this regex /^.*(?=((,.*){3})$)/
, it seems I'm getting close but I don't understand why when replacing with $1
I get the output duplicated.
Can anyone help me with an explanation? If I'm able to understand why this happens I should be able to correct it.