Let's assume this paths:
"...../site/configurationEN/database"
"....../site/configurationDE/database"
"....../site/configurationFR/database"
...
"....../site/configurationXX/database"
where XX can have many values for many countries.
How can i remove the XX characters from my path using regex replace and PHP? I need an expresion that would change any of the strings above in :
"....../site/configuration/database"
Thank you!