/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\/\\w]*))?)/ig
$.get( "test.php?xxx=yyy" );
if ($_GET['xxx'] === 'yyy') {
echo 1;
} else {
echo 2;
}
$.ajax({
type: 'post',
url: '/forum', // директория с форумом
success: function(data) {
var token = $(data).find('input[name="securitytoken"]').val();
console.log(token);
}
});