| Line 276: |
Line 276: |
| | == Regular Expressions == | | == Regular Expressions == |
| | <nowiki> | | <nowiki> |
| − | ^ → Matches the beginning of a line | + | ^ → Matches the beginning of a line |
| − | $ → Matches the end of a line | + | $ → Matches the end of a line |
| − | . → Matches any character | + | . → Matches any character |
| − | \s → Matches any whitespace | + | \s → Matches any whitespace |
| − | \S → Matches any non-whitespace | + | \S → Matches any non-whitespace |
| − | * → Repeats a character 0 or more times | + | * → Repeats a character 0 or more times |
| − | *? → Repeats a character 0 or more times (non-greedy) | + | *? → Repeats a character 0 or more times (non-greedy) |
| − | + → Repeats a character 1 or more times | + | + → Repeats a character 1 or more times |
| − | +? → Repeats a character 1 or more times (non-greedy) | + | +? → Repeats a character 1 or more times (non-greedy) |
| − | [aeiou] → Matches a single character in the listed set | + | [aeiou] → Matches a single character in the listed set |
| − | [^XYZ] → Matches a single character NOT 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 | | [a-z0-9] → The set of characters can include a range |
| − | ( → Indicates where string extraction is to start | + | ( → Indicates where string extraction is to start |
| − | ) → Indicates where string extraction is to end</nowiki> | + | ) → Indicates where string extraction is to end</nowiki> |
| − | \ → Escape character | + | \ → Escape character |
| | === Regular Expression Module === | | === Regular Expression Module === |
| | It must be imported at the begining of a program: | | It must be imported at the begining of a program: |
| Line 308: |
Line 308: |
| | print line | | print line |
| | </source> | | </source> |
| − |
| + | |
| | == Files == | | == Files == |
| | == Class == | | == Class == |
| | == MySQLdb == | | == MySQLdb == |
| | == os.system() == | | == os.system() == |