FoxTrot Search Forum - RDF feed
type: channel
description: FoxTrot Search for macOS Forum
items: Search for exact string doesn't work if the string contains "^"
items: Re: Search for exact string doesn't work if the string contains "^"

Search for exact string doesn't work if the string contains "^"
type: item
description: Actions taken: 1. Add search condition that file content contains the string "foxtrot". 2. Add search condition that "Content" must "Includes the exact string", and I use the search string [^(?!.*(transfer] <--- The search string is wrapped around square brackets, but it doesn't contain square brackets. I uncheck all the ignore options. Results: It seems to search for the string "transfer" and ignore the rest of the symbols in the exact string. However, if I drop the "^" at the front of the search string and search with only [(?!.*(transfer], then it will work as expected. I know the symbol "^" is used to search for exact string in Foxtrot Query, so I would understand if this search string is causing issues in Foxtrot Query, but in this case I'm using the "Includes the exact string" option to do the search. Why is the character "^" being treated differently under the "Includes the exact string" option?
creator: Atlas
date: 2023-07-16T10:18:17-00:00

Re: Search for exact string doesn't work if the string contains "^"
type: item
description: ^ is the delimiter for exact string queries, in the FoxTrot Query syntax, and thus an exact string search can't currently include such character. We will try to add a workaround in a future version.
creator: FoxTrot Engineering
date: 2023-07-18T07:48:00-00:00

Re: Search for exact string doesn't work if the string contains "^"
type: item
description: I've asked this question before and you didn't respond so I'll ask here again: Please also add a way to work around the delimiter symbol [`] in Foxtrot Query for regular expression. Currently, I don't see a way to use regular expression in Foxtrot Query if it contains [`].
creator: Atlas
date: 2023-07-19T03:26:32-00:00