I have the following urls
/es-es/Replica-2300/saliffanag/winsrow
/es-de/Bat-00/saliffanag/winsrow
/es-it/Re-2300/saliffanag/winsrow
/es-../
etc..
And I need a pattern that captures only /es-es/ or /es-de/ or /es-it/ (the first /...-.../) in Java.
I've tried with this
"[^/]*/([^/]*)/"
But is not working
How can I achieve this?