Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

FFIND and quoted strings

Jun
121
0
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
 
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.
 
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
 

Similar threads

Back
Top