On 3/23/21 10:20 AM, Eric Blake wrote:
-valid_name = re.compile(r'^(__[a-zA-Z0-9.-]+_)?' - '[a-zA-Z][a-zA-Z0-9_-]*$')I'm assuming python concatenates r'' with '' in the obvious manner...
FWIW, I don't think it does, actually. I believe you do need to spell out each individual string constant with what type it is.
(In this case, missing the second r has no effect as there are no backslash sequences in the string.)
--js