- Python basic
- Python for Scientific Computing
- numpy
- matplotlib
- Python for Web
- regular expression
- web crawler
- extracting links < a href="< url>">
- web pages rank
Python Challenge: 2. string.maketrans()
- Why do we need to invent new languages like Python to program computers, rather than using natural languages like English or Mandarin?
- Ambiguity
- Verbosity
import re
re.findall(<Regular Expression>, <text>)
| Symbol | Meaning |
|---|---|
| ^ | Matches the begining of the line |
| $ | Matches the end of the line |
| . | Matches any character |
| \s | Matches whitespace |
| \S | Matches any nonwhitespace character |
| * | Repeats a character 0 or more times |
| *? | Repeats a character 0 or more times (nongreedy) |
| + | Repeats a character 1 or more times |
| +? | Repeats a character 1 or more times(nongreedy) |
| [aeiou] | Matches a single character in the listed set |
| [^XYZ] | Matches a single character not in the listed set |
| [a-z0-9] | The set of characters can include a range |
| ( | Indicates where string extraction is to start |
| ) | Indicates where string extraction is to end |