Sorry, for that (but I´m a regex noob)
in js how would one replace the first folder in a url string.
Pseudo Code:
Replace at start of string: /any-amount-of-characters/ with nothing
Examples
$path = '/xyz/abc/';
should result in
$path = 'abc/';
Thanks!