Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
Jutta Albrecht
14 discussion posts
Hi,

I noticed that a search string that contains " leads to unexpected results (version 3.1).

This is my search string:

Code

JAVA_PATH="$GENERAL_INSTALLDIR/java/jre"


The search matches these two lines in a file:

Code

JAVA_PATH="$GENERAL_INSTALLDIR/java/jre"
JAVA_PATH="$ANOTHER_DIR/java_jre"


instead of matching just the first line. The highlighting of the first line shows that the embedded and ending " are not matched. The highlighting of the second line shows that only the part before the " (JAVA_PATH=) is matched - almost as if " is treated like | to separate several search strings.
Is this intended behavior - maybe an option I did not notice?

As a workaround, I checked the "Query is RegEx" option and masked the embedded $ with a backslash. This matches the first line including the double quotes correctly.

Thanks a lot for FileSeek - I use it daily for my work as a developer and it just works great!

Best regards
Jutta
Jun 14, 2013 (modified Jun 14, 2013)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Glad to hear you like FileSeek, thank you for the kind words!

Quotes are part of the query syntax, so if you want to search for them directly in the contents of files, you just need to escape them with a backslash. So, your query would be:

JAVA_PATH=\"$GENERAL_INSTALLDIR/java/jre\"

Hope that helps!
Jun 14, 2013  • #2
User Image
Jutta Albrecht
14 discussion posts
Hi Keith,

this helps indeed! I just realized that it's even documented in the FAQ... d'oh... ;-)

Thanks a lot for your help!

Best regards
Jutta
Jun 14, 2013  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
No worries, glad to hear it worked out!
Jun 14, 2013  • #4
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)