FTSearch and the literal strings "[" and "]"

Does anyone know how to get the [ and ] characters to work in an FTSearch? For some reason, every method I’ve tried has failed… It keeps thinking the contents between the are field names.

Subject: RE: FTSearch and the literal strings “[” and “]”

What, even if you put them in quotes?

Subject: RE: FTSearch and the literal strings “[” and “]”

See, that’s the tricky part. Quotes are part of the string I am looking for. For example:

The processing instruction target matching “[XX][XX][XX]” is not allowed.

That line above is an error message I want to look for. If I enclose the entire line in quotes I get an error. If I don’t, I get no matches, even though I know there are some out there.

Subject: FTSearch and the literal strings “[” and “]” - Solved

OK, so with my morning coffee now in me, I figured it out.

“The processing instruction target matching " AND “””[XX][XX][XX]“”" AND " is not allowed"

That works. For whatever reason I could never get it to work as one long string, but this has the result I wanted.

Subject: FTSearch and the literal strings “[” and “]”

Certain characters are ignored by the FTI but as far as I know this isn’t one of them (only @ & : / ).

Should work with just “[” or… “[” & “]” or… “[test]”

Subject: FTSearch and the literal strings “[” and “]”

Between the you must name a field.Instead of [FIELDNAME]=“” you could also write FIELD FIELDNAME=“”

So this is a shorter way.