I need to remove everything before the third forward using regex so that for example https://stackoverflow.com/questions/ask becomes /questions/ask I'm not the greatest when it comes to regular expressions so your help would be much appreciated.
This is what I have so far https://regex101.com/r/qQ2dE4/498
The code I currently have is but want to use regex:
url.substring(url.indexOf('\/') + 3)