[docs] [issue35584] Wrong statement about ^ in howto/regex.rst
Raymond Hettinger
report at bugs.python.org
Tue Dec 25 18:00:44 EST 2018
Raymond Hettinger <raymond.hettinger at 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 <report at bugs.python.org>
<https://bugs.python.org/issue35584>
_______________________________________
More information about the docs
mailing list