May-02-2024, 03:43 PM
Hello everyone (1st post!)
When I started using regular expressions back in Python 2, it seemed that best practice was to use raw strings in order to avoid having escape characters all over the place.
But recently, I've done a few patterns that I thought would need "escaped escapes" and the like, but they seemed to work fine as normal text strings.
Has the regular expression syntax been streamlined, or did I just not make a regex that needed a raw string?
(sorry, no, I don't remember the specific pattern at the moment.)
When I started using regular expressions back in Python 2, it seemed that best practice was to use raw strings in order to avoid having escape characters all over the place.
But recently, I've done a few patterns that I thought would need "escaped escapes" and the like, but they seemed to work fine as normal text strings.
Has the regular expression syntax been streamlined, or did I just not make a regex that needed a raw string?
(sorry, no, I don't remember the specific pattern at the moment.)