FFIND and quoted strings

Jun 7, 2008
121
0
#1
Hi

I wish to search for "PD" in various source code files (and with the double quotes in place - they are part of the seach string)

FFIND /s /t"PD" *.cpp;*.h

wont do that, do I have to resort to hex searching to get the effect I want?

Cheers

Stephen Howe
 
#3
Try using the escape character or pseudovariable (the %= below) for
your internal quotes:

FFIND /s /t"%="PD%="" *.cpp;*.h

On Wed, May 13, 2009 at 8:57 AM, Stephen Howe <> wrote:

> Hi
>
> I wish to search for "PD" in various source code files (and with the double quotes in place - they are part of the seach string)
>
> FFIND /s /t"PD" *.cpp;*.h
>
> wont do that, do I have to resort to hex searching to get the effect I want?
>
> Cheers
>
> Stephen Howe
>
>
>
>
>


--
Jim Cook
2009 Saturdays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Sunday.
 
May 29, 2008
36
0
#4
Stephen Howe wrote:

> Hi
>
> I wish to search for "PD" in various source code files (and with the double quotes in place - they are part of the seach string)
>
> FFIND /s /t"PD" *.cpp;*.h
>
> wont do that, do I have to resort to hex searching to get the effect I want?
>
Just escape the double quotes that are part of the search string.

FFIND /s /t"^"PD^"" *.cpp;*.h assuming your escape character is the ^.

Dennis