The expression you\\? $will match at the last you in the string You did n't do that, did you? but nowhere in You did n't do that, right?
L' expressió tu\\? $coincidirà amb el final de la cadena No l' has fet tu?, però amb cap part de Tu no l' has fet?