Hi,

I'm trying to extract one or multiple usernames from a given search term:
cartoons -user:donald,mickey,goofy
However, with the regex I came up with I only get two submatches:
Code:
/\-user\:(\w+)(?:\,(\w+))*/i
submatches: 1: donald 2: goofy
I've been twiddling with this for two hours now, but still don't know what I'm doing wrong. How do I have to change the expression to get all usernames as submatches?
Thanks in advance.