p: a\\b m : a [b "a\\\\b" 

p is a pattern, m matches.

Why did this happen?

Closed due to the fact that the essence of the question is incomprehensible by the participants insolor , YuriySPb , aleksandr barakin , VenZell , Dmitriy Simushev 29 Apr '16 at 9:39 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    Because in the string "a\\b" shielding is obtained for a slash, the string becomes one slash, a\b . In the regular expression, \b perceived as a word boundary.