Flashcards
Python
Cards in this deck (7)
- 11. raw string indicator 2. property of raw strings concerning meta characters1. r
e.g.: r"hello world"
2. meta characters are ignored - 2python lib for regular expressionsre
- 3Python re uses regular expression syntax of which language?Perl
- 4indicate one, two or three repetitions of class [abc][abc]{1,3}
- 51. regular expressions (re): define a class that does not match chraracters a, b or c. 2. term for this "negation"?1. [^abc]
2. complement - 6re: define a pattern for this text: \section 1. without using a raw string 2. using a raw string1.
pattern = re.compile("\\\\section")
2.
pattern = re.compile(r"\\section") - 7Must Python functions be defined before usage?yes