classification
Title: Metacharacter (\) documentation suggestion
Type: enhancement Stage:
Components: Documentation Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, kdraeder
Priority: normal Keywords: easy, newcomer friendly

Created on 2018-01-25 00:01 by kdraeder, last changed 2021-11-21 15:30 by AlexWaygood.

Messages (1)
msg310647 - (view) Author: Kevin Raeder (kdraeder) Date: 2018-01-25 00:01
I've found the Regular Expression HOWTO to be very helpful
(https://docs.python.org/3/howto/regex.html?highlight=regular%20expressions). 
One inconsistency I noticed is that the intro to metacharacters says
"Metacharacters are not active inside classes. "
But farther down we learn that a class can be constructed using \s: [\s,.],
which is "all white space characters , and ."
It's not the 4 characters "\ s , and ."
So I think the first statement would be clearer as
"Metacharacters (except \) are not active inside classes. "
History
Date User Action Args
2021-11-21 15:30:23AlexWaygoodsettype: enhancement
2021-11-21 14:48:46iritkatrielsetkeywords: + easy, newcomer friendly
versions: + Python 3.11
2018-01-25 00:01:01kdraedercreate