I want my string to match a pattern like this +cat,+dog,-name,+cat
So basically it should start with + or - followed by variable name and then ","
So I want to have a regex for the same for matching the string.
Could you please tell the regex for this pattern ?