'Find & Replace' ignores quoted strings

I am having a problem with the editor's 'Find & Replace' tool. I have a mfile containing containing quoted strings like
load('File1.mat') ;
load('File2.mat') ;
load('File3.mat') ;
load('File4.mat') ;
When I use Edit > Find & Replace to search for File or mat, they are not found. But when I search for load, it is found. It seems like the characters enclosed in single quotes are invisible to Find & Replace. Is that a known issue? I am using R2012a.

4 commentaires

Sean de Wolski
Sean de Wolski le 6 Août 2012
I can't reproduce this...
John Petersen
John Petersen le 6 Août 2012
I have the same version and have no problem with it. Is the Match case box selected?
the cyclist
the cyclist le 6 Août 2012
Or the "Whole Word" check box?
K E
K E le 6 Août 2012
Modifié(e) : K E le 6 Août 2012
Sigh. Yes, the Whole Word box was checked, and the problem disappeared when it was unchecked. Sorry to trouble everyone and will delete this question if anyone thinks it is warranted.

Connectez-vous pour commenter.

 Réponse acceptée

K E
K E le 6 Août 2012

0 votes

This is due to checking the Whole Word box. The problem disappeared when it was unchecked. I hope this spares someone else a silly mistake.

Plus de réponses (0)

Catégories

En savoir plus sur Environment and Settings dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by