Here is my pattern, \/\d+$
. It matches the slash and number which is in the end of string. Now I want to expand it and making it working for a sequence of them.
Here is the input:
ticket/2/1/19
And here is the current result:
ticket/2/1
And this is the expected result:
ticket
How can I do that?