(I can't imagine how this question is off-topic, it is only asking about a regex just like a dozen questions on stackoverflow !!!!!!!!!)
In order to find a solution to the question User-friendly URLs for user profiles in YaF one way of solving it is by finding a regex to capture anything else other than the predefined list of controllers,
So I need a regex to match this /notAcontroller
where notAcontroller
is not one of my predefined controllers like in this array [index, home, profile]
Example:
For these controllers [index, home, profile]
I need to match for strings like these: /Joan
, /abdelhady/photos
but not these: /profile/get/id/222
, /index
or even /