Trying to check the correctness of steam trade offer link which looks like
https://steamcommunity.com/tradeoffer/new/?partner=200396688&token=XSvAH09r
(in this case, this is my link) Check for js and php, for js I try this:
var expr = new RegExp(/http(?:s)://steamcommunity.com/tradeoffer/new/?partner=([0-9]+)&token=([a-zA-Z]+)/; expr.test("https://steamcommunity.com/tradeoffer/new/?partner=200396688&token=XSvAH09r");
but writes
SyntaxError: nothing to repeat
Ps who is not difficult, help to make a regular expression in php, I have with them tight