I want to fetch only the 'cleaner' version of the url without any parameters. IOW... if there is a question mark inside the url remove it and everything afterwards.
Here is my current line :
preg_match_all('/<a(.*?)href=("|\'|)(.*?)("|\'| )(.*?)>/s',$content,$ahref);
And just to be more clear here... I'm expecting that this url (for example):
/go/page/mobile_download_apps.html?&who=r,6GDewh28SCW3/fUSqmWqR_E9ljkcH1DheIMqgbiHjlX3OBDbskcuCZ22iDvk0zeZR7BEthcEaXGFWaQ4Burmd4eKuhMpqojjDE6BrCiUtLClkT32CejpMIdnqVOUmWBD
Would be :
/go/page/mobile_download_apps.html
/(<a href=")(.*)(\?.*)/s(missing some info to give a more detailed answer...)?was absent. (And OP will just keep reasking those regex questions without trying to understand what they do.)?=> regex101.com/r/mD3sB1/1