Q1. why we can not use word boundary and back reference without using r
at start of regex?
e.g. '\b[a-z]{5}\d{3}\b'
this not works but this r'\b[a-z]{5}\d{3}\b'
works
Q2. why python does not support variable length negative look behind assertions
while it supports variable length negative look ahead assertion
, c#
support both and i think it is an excellent feature to have also variable length negative look behind
in python
.
please clear these two concepts. thanks