Wireshark-bugs: [Wireshark-bugs] [Bug 12522] Double escaping of backslash in Regex required
Date: Mon, 20 Jun 2016 17:48:50 +0000

Comment # 4 on bug 12522 from
(In reply to Thomas W. from comment #2)
> Created attachment 14668 [details]
> Capture to proof that wrong results are found
> 
> Regex: xml matches "@@ V\?"
> Finds (guess): @@ D1
> Potential cause (guess): V is considered as optional as in V?
> 
> Regex: xml matches "@@ V\\?"
> Finds nothing (as expected)

I'm certainly no Perl expert, but the behavior *seems* consistent with the
online Perl regex tester: http://www.regexplanet.com/advanced/perl/index.html.

What if you try: xml matches "\"@@ V\"?"

(In reply to Thomas W. from comment #3)
> Created attachment 14669 [details]
> Capture to play with double escaping of \
> 
> Regex: xml matches "@@ V1\\*"
> Expected: no results, since there is no backslash in the XML
> Actual Result: @@ V1***** is found

No results are found if xml matches "\"@@ V1\\\\\"*" is applied.  It looks like
an additional level of escaping is required.


You are receiving this mail because:
  • You are watching all bug changes.