I've been working on a PHP project where I have a dataset with rows of URLs. I need to remove the domain name from each row and keep only the path part.
For example, if I have a URL like "https://www.example.com/path/to/something", I want to remove "https://www.example.com" and keep "/path/to/something".
I believe regular expressions can help achieve this, but I'm not very experienced with them. Can someone please provide me with a regular expression in PHP that can help me achieve this?
Thank you in advance for your help!