i need to trim this string -> http://hokuspokus/ixdebude/ix and i exactly Need this part of the string /ixdebude/ix
I have 2 expressions to solve my Problem.
My first regex ->
/(.*)\/(.*)(\/)(.*)\/*/g
returns Array[5] groups .
my second regex ->
/(\/............)$(.*?)$/g
returns /ixdebude/ix
Can someone of you give me another regex, a better without thousand dots ?