See e.g. here:

https://docs.python.org/3/library/re.html

[]

    Used to indicate a set of characters. In a set:

...

Ranges of characters can be indicated by giving two characters and
separating them by a '-', for example [a-z] will match any lowercase
ASCII letter, [0-5][0-9] will match all the two-digits numbers from 00
to 59, and [0-9A-Fa-f] will match any hexadecimal digit. If - is escaped
(e.g. [a\-z]) or if it’s placed as the first or last character (e.g.
[-a] or [a-]), it will match a literal '-'.



Note: It says, \- is correct syntax. But probably (should be tested)
only if within a range like [a\-z], but not this [a-z\-\.]

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139313

Title:
  /usr/share/apport/package-hooks/postfix.py:36: SyntaxWarning: invalid
  escape sequence '\-'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/2139313/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to