armsys wrote:Enternal wrote:This happens a few times in the past and always bothered me but I think I should report it.
Would you like to try it out with regex?
eg \[Titan\-Mons\]
This works perfectly! However... (more to it down below)
TheQwerty wrote:I'm guessing here because my Windows box hosed itself this afternoon...
XY is treating your queries as character lists, similar to those used by regular expressions, so '[Titan-Mons]' is matching a single character which is t, i, t, a, n through m, o, n, or s.
Now the reason that '[Break-Pony]' doesn't give an error like those other examples is because XY only supports ranges that are in the "correct order", I presume. Since P is after k this range is expanded properly, but in the previous example n is not before M so the range causes an error. I guess a single character range, d-D, might also cause an error, or it might be because of the capitalization since ASCII D is < ASCII d. (Though this might depend on whether you're searching with match case enabled.)
Try your searches again but escape the opening bracket by doubling it (ie. '[[Titan-Mons]') and I think it should work as you expect.
HTH
I tried it with '[[Titan-Mons]' and it still gave me an error. What's odd is I have my search set to Standard and not RegEx or Boolean so it really is odd how armsys's examples works perfectly with search settings set to Standard. Now, if I enclose my search in double quotes like -> "[Titan-Mons]"-> I would expect it to work since I'm explicitly searching for that but still the same problem. Actually that's how I first encountered the problem (with quotes).
EDIT: FOUND IT!! Thanks to you two, so I found the cause. It seems that the Search mode is not really followed or something. Whether I set the mode to Standard, Boolean, or RegEx, a regex search using "x[0-9A-Z]" will get the same exact results in all 3 modes!