2👍
✅
In your regex, [^, ]
is matching any character except commas and spaces, including forward slashes.
To exclude forward slashes, change it to [^,/ ]
. Alternatively, something like [-\w] +
might be appropriate.
Source:stackexchange.com