社区问答

欢迎来到 Audiokinetic 社区问答论坛。在此,Wwise 和 Strata 用户可互帮互助。如需我们团队直接提供协助,请前往技术支持申请单页面。若要报告问题,请在 Audiokinetic Launcher 中选择“报告错误”选项(注意,问答论坛并不会接收错误报告)。我们内部设有专门的错误报告系统,会有专人查看报告并设法解决问题。

要想尽快得到满意的解答,请在提问时注意以下几点:

  • 描述尽量具体:比如,想达到什么样的目的,或者具体哪里有问题。
  • 包含关键细节:比如,Wwise 和游戏引擎版本以及所用操作系统等等。
  • 阐明所做努力:阐明自己为了排除故障都采取了哪些措施。
  • 聚焦问题本身:聚焦于问题本身的相关技术细节,以便别人可以快速找到解决方案。

0 投票

It appears that the only way to do a complex search including one or more strings that I want to NEGATE (i.e. results will NOT contain the strings) is to write a WAQL query using RegEx.

However, due to the strict character limit for WAQL queries in the Query Editor, and by being forced to enter each string as case-insensitive via the RegEx syntax (e.g. to match BAR, Bar, or baR, the RegEx must be written as [bB][aA][rR]), the process of writing an effective query is often tedious, the length/step count/execution time of the expression is typically inefficient, and sometimes, it's impossible to write a query that functions as intended and/or returns the desired result.

Is there any way to add the RegexOptions.IgnoreCase option (either inline in the query, or in a config file somewhere) to make RegEx strings in a WAQL query be handled as case-insensitive?

If not, I sincerely hope that this option/preference will be added in the very near future.

And hopefully, after 3 posts here without a single reply, I'll finally get a response this time, and be able to feel like asking questions in this forum isn't just a complete waste of time.


Wwise 2021.1.8
Windows 10 Pro (10.0.19043 Build 19043)
UnrealEditor 5.0.2.0

分类:General Discussion | 用户: Mike MKJ (300 分)

1个回答

0 投票
 
已采纳

Thanks for the suggestion. We noted.

Also note the : operator allow for case-insensitive word match.

example:
$ where name : "bar"

will match:
"BIG BAR"
"bar"
"Bar"
"small bar blue"
"CROW_BAR"

用户: Bernard R. (Audiokinetic) (35.8k 分)
采纳于 用户:Mads Maretty S. (Audiokinetic)
Unfortunately, this method doesn't allow for any other useful Regular Expression functionality. Therefore, while it may be useful in matching a simple string within a property/reference name, it cannot do more complex matching functionality that can be achieved with current standard ECMAScript RegEx, such as:

$ where name=/\b(bar)\b/i
or
$ where name=/\b(?i:bar)\b/

either of these would match "bar", "Bar", or "BAR", but would not match "barrier", "Barn", "embarassed", or "FUBAR".

Furthermore, the WAQL Reference documentation states "ECMAScript regular expressions are used". This is inaccurate as modern ECMAScript allows for several modifiers by default (using the syntax in my examples above) including global (g), multiline (m), and ignoreCase (i). The documentation should be updated to include the differences between the standard ECMAScript RegEx, and the modified version of it that is used in Wwise.

Or, even better yet, Wwise should be updated to support the use of these modifiers, primarily the ignoreCase modifier.
...