Nasri was sold to Manchester City last summer when he had a year remaining on his contract but Wenger believes that Van Persie's situation is different.
"The situations are not completely comparable," he told arsenal.com. "My desire and my wish is to find an agreement with Robin van Persie, extend the contract and stay with us for a longer time. Hopefully we can reach that.
"If that wouldn’t happen, we’ll still want him to stay but I am more focused on the first situation. I think what is important for us is that we find an agreement with him to be happy and to stay and finish his career here."