Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

The caret has several meanings:

* Generally, it is a beginning of string: r'^bol'

* When MULTILINE is on, it is a beginning of line: r'^bos'

* Escaped with a backslash, it is just a caret: r'a\^b'

* Immediately after a left bracket, it inverts a character set: r'[^aeiou]'

* Elsewhere in brackets, it is just a caret: r'[ab^d]'

----------
nosy: +rhettinger
versions:  -Python 3.4, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35584>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to