Learn Before
Concept
Character Sets
- [] is used to group characters/expressions together.
#matches a,b, or c and NOT abc [abc] #matches any capital letters from A to Z [A-Z] #matches characters from a to z or digits 0 to 9 [a-z0-9] #Using ^ in the set excludes characters in the set #matches any character not x, y, or 4 [^xy4]
0
1
Updated 2021-08-24
Tags
Python Programming Language
Data Science