Search code examples
regexvisual-studiovisual-studio-2003file-search

Is there a way to conduct a "fuzzy" search in files in VS 2003?


I need to find code like this:

Platypus = true;

(that is, any place in the code where Util.StopCancel is set to true)

...but in some places in the code, it is thus:

Platypus    = true;

(superfluous spaces); thus such cases are not found.

I could just search for "Util.StopCancel" but there are gazillions of references to it (checking the val, mostly), and would like to "sift through the chaff."

Is there a way? I see there's an option to use regular expressions:

enter image description here

What would be the regular expression for this?

UPDATE

It's kind of bizarre to me that nobody seems to have a need for this, and thus an answer based on what they already do to find assignments like that.


Solution

  • Something like this:

    Platypus *= *true
    

    See regular expressions for VS2003