- or download this
... \s*([^,]+)\s*,...
Find some whitespace, or perhaps none at all.
...
which *includes* whitespace, then...
Find some more whitespace, perhaps none
Find a comma
- or download this
m#(?:[^,]*,\s*){3}(.*?)\s*,#
- or download this
(?: ## Group, but do not store it into $1
[^,]* ## Anything that is not a comma
...
(.*?) ## Match any character, but don't be so greedy about it
\s* ## Possible whitespace
, ## Stops at first comma, because we are not being greedy