Stash Tab Regex Not Working

Bug Report Ref Nr: 1714489767


Regular Expression in stash tabs seems not to work. While using a simple regex, other items get highlighted as well, which, according to regex-testers, should not match.

Regex: item level: [0-6]

Expected behaviour: Highlight all items which have an iLvl between 0 and 69 (technically the first digit may only be between 0 and 6, so items with ilvl 7, 8 and 9 should not match, too)

Current behaviour: all items with an item level get highlighted, even those who have "item level: 7" in the string.

Last bumped on May 20, 2022, 1:33:51 PM
This thread has been automatically archived. Replies are disabled.
I see two correct syntaxes for this:

"item level: [0-6]"
ilvl:[0-6]

ilvl is described by the tooltip over the circlar "i" icon to the left of "Highlight items". The tooltip also says that spaces seperate keywords, so putting a space between ":" and "[0-6] means they won't be considered in the same check.

It also says to use quotation marks " to combine space-seperated text into a single keyword. Without the "s around what you tried, you're matching any item with the words item and level: (any item with an item level, skill gems, maybe some other stuff), that also has a digit from 0-6 anywhere.



[edit] While I said "correct", I suppose that's not a great way to put it--they were versions of what you posted that gave the result you expected. There are probably more ways to do that, as well.

"item level: ([0-6]|\d(?!\d))"

I think this will do closer to what you were looking for. It matches an item level that starts with a digit 0-6, or is a single digit item level (digit not followed by another digit).
Last edited by Jadian#0111 on May 20, 2022, 10:58:42 AM
Okay, thanks for clearing this up. Indeed, when considering the things you described, the function works as intended.

The problem with this is, that the info text is misleading. The search box is _not_ supporting regular expression, as you know it. It is a mixture of an own syntax _and_ regex. Best example is, that the following regex should work, but is not:
(item level: ([0-6]))

You can even remove the inside parantheses and it still does not work, even though it is a complete, valid regex.

So yeah... they mix up syntaxes and in my opinion this can be cleared up by being a bit more precise in the info text. Do not say "Regular expressions are supported", if they are in reality only partially supported.
The syntaxes simply clash in many cases. You can't easily determine a player's intention. Somebody might just be searching for the "words" (item and level for some reason.

I do agree with GGGs approach of prioritizing the regular search function because that's what most people use.

The only way I could see this work in every case is if there was a way to switch between regex and regular search. A more convoluted hint wouldn't really help here. There isn't enough room to explain what works and what doesn't.

Report Forum Post

Report Account:

Report Type

Additional Info