Ask Your Question
0

Matches keyword being case-insensitive without me using the "(?i)" flag.

asked 2024-05-26 18:04:19 +0000

fadl gravatar image

updated 2024-05-26 18:05:10 +0000

I am facing a (what I can only presume) bug in which the matches display filter keyword, which is supposed to work with RegEx, is being case insensitive without me using the (?i) flag. So for example, I get the same results by using the following filters: frame matches "google", and frame matches "GOOGLE", and any variation on the character cases. I tried looking it up and asking Chat GPT, but I found nothing about this topic. I don't expect this to be a feature, since RegEx is used to be super explicit about what you are looking for, so it shouldn't just throw any case-insensitive matches at you.

I hope you guys can help me and guide me on this issue, since I'm losing my mind over this!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2024-05-26 22:11:40 +0000

johnthacker gravatar image

The matches operator is case insensitive and that has been the case since 2.6 (https://gitlab.com/wireshark/wireshar...) You can use (?-i) for a case sensitive match.

That is the behavior as described in the manual https://www.wireshark.org/docs/man-pa... and the yser guide https://www.wireshark.org/docs/wsug_h...

It could possibly be pointed out a little bit more in the user guide, though the man page is fairly explicit. If you don't mind me asking, where did you "try looking it up?" I don't know that this is the sort of question ChatGPT would be good with.

edit flag offensive delete link more

Comments

Honestly, I googled "wireshark matches display filter case sensitivity" and a bunch of variations of that. I didn't find anything to do with what I googled. I asked GPT and since the cut-off for GPT was 2020 it was weird that it tell me about the update since it was V2.6 was before 2020. Thanks for the answer!

fadl gravatar imagefadl ( 2024-05-27 15:50:10 +0000 )edit

Another example of a ChatGPT hallucination?

grahamb gravatar imagegrahamb ( 2024-05-27 16:45:23 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2024-05-26 18:04:19 +0000

Seen: 411 times

Last updated: May 26