Help cleaning up old code. SEARCH seems rather poor

I am not sure it is a good thing, but my past is kind of haunting me.

WAY BACK WHEN..... var was used to declare variables used in function node.

This has made way to let.

So I a thought I would go through and search for any instances of var used.

I already understand that var is not a good idea but var IS better as it is used at the start of lines and would then have the variable name AFTER it.
So the trailing space would help in the search.

OR SO I THOUGHT! (Dramatic music)

It doesn't (or doesn't seem to.)
It finds ANY time I use the letters var and somehow ignores the trailing space.

Is there a way I can better search for times I use var rather than let?

For the sake of it: examples:
(Yes, screen shots)

And before you mention:
I checked that function node.
NO there are no uses of var in it.
It is because of the word variable.
:frowning: :cry:

You can scope the search to function nodes by adding type:function

As for searching var (with space) maybe try surrounding it in double quotes? Idk :person_shrugging:

Had the same issue looking for a command, I exported the flows and used notepad++ to do my searching. Seemed to work ok.

Thanks both.

Long, slow battle.

I'll probably go with Steve's suggestion.

Don't bother, if a function is working, and you are not working on it, then leave it as it is. If you find yourself editing a function then tidy it up but otherwise I am sure you have more important things to do.

Yeah, but OCD really sucks.

:wink:

Thanks.

:laughing:

I can confirm that does not work I'm afraid.