I'm glad to hear you're enjoying NWP
Let's see if I can explain string interpolation with respect to Find commands. First, let's make distinct the string itself, and the string's representation in the macro. Back to your tab, the typed representation in the macro is "\t", but the actual string is just a single tab character. The Find command sees the actual string, never the typed representation. So, if the Find command is given the representation "\s+", interpolation makes the actual string "s+", eg: the backslash has been removed before the Find command sees it. Only then does the Find command start looking for its own kind of special sequences like "\s" or ".+"
It might be more clear if one separates out the Find command into two steps:
Code: Select all
$pattern = "\s+"
Find $pattern, 'E'
If you ever get confused as to what final string the Find command sees, you could use the Prompt command to display $pattern.