i want a regular expression that groups a few special characters in the end of a string.
The special character are / - _ and the space.
For example if i have the string (test) --- ---
i want to get the string " --- ---" in the group.
I've created the following regular expression: ([ -/_]*)$
The problem is that it get me the following string ) --- ---
Why does extract me the final pharenthesis ?