Home > Back-end >  My regex does not match with the "[" and "]" character despite escaping them for
My regex does not match with the "[" and "]" character despite escaping them for

Time:10-02

may I know why my Regex does not match with the "[" and "]"?

enter image description here

The pictures is seen there. As you can see, I have escaped the [ and ] with .

I do not want it to match with 5B but I want it to match with 5[B]. Thanks!

CodePudding user response:

Rempve the \b and It will work as expected enter image description here

  • Related