Level 100 Level 102
Level 101

[No Typing] Regular Expressions


14 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
import re
module providing full support for regular expressions
r'expression'
to avoid confusion with regex, we use raw strings
a, X, 9
ordinary character
. (a period)
matches any single character except newline '\n'
\w
matches a "word" character: a letter or digit or underbar [a-zA-Z0-9_]r
\W
matches any non-word character.
\b
boundary between word and non-word
\s
matches a single whitespace character: space, newline, return, tab
\S
matches any non-whitespace character
\t, \n, \r
tab, newline, return
\d
decimal digit [0-9]
^
matches start of the string
$
match the end of the string
\
inhibit the "specialness" of a character