Python Flashcards
(4 cards)
1
Q
Dot . - The Wildcard Character
A
Any character whatsoever except a new line
2
Q
What would be some expected matches of c.t?
A
Cat, cot, cut,
Because the . (dot) matches any single character (except new line) so it finds sequences where ‘c’ and ‘t’ are separated by any character
3
Q
Caret ^
The beginning Anchor
A
4
Q
. What’s this mean?
A
Look exactly for a period