I want to extract the complete path i.e the path followed by the host name of a URL in javascript.
var url = 'https://domain.us/file.php/fghfgh?id=1'
Here i want to extract /file.php/fghfgh?id=1
How can this achieve only using regular expression not by "document.createElement('a')
" methode ?
I need the answer in regular expression ,