I have structure of URL like this: https://steamcommunity.com/tradeoffer/new/?partner=12a3456asdf789&token=12345Dasdew678
The two parameters of the URL, partner
and token
will have dynamic values which can contain alphanumeric characters only.
I would like to know if the format of the URL meets my requirements
if($URLisFormattedProperly) {
return true;
} else {
return false;
}
How should I do this?