Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
Python Tutorial
Regular Expressions 29 codes
Home
Python Tutorial
Regular Expressions
1 Classes and special sequences
2 Compiled regular-expression and match objects
3 Dig out path
4 Escape string
5 Find a string
6 Find the punctuation
7 Finding Numbers
8 Finding the Extension
9 Grouping and greedy operations
10 Handling Different Separators
11 Handling Leading Characters
12 Handling Numbers Without Separators
13 Here is an example of a failed match where None is returned
14 Matching at the End of a String
15 Matching Strings with match()
16 Matching Whole Words
17 Obtain a tuple of all the subgroups matched
18 Phone Number, Wherever I May Find Ye
19 Re findall returns a list of all occurrences of the given pattern
20 Re sub substitutes the leftmost, nonoverlapping occurrences of a pattern with a given replacement
21 Regular-expression string manipulation
22 Repetition patterns, matching vs searching
23 Repetition, Special Characters, and Grouping
24 Searching and Replacing with sub() [and subn()]
25 Simple regular-expression example
26 Split Output of Unix who Command (rewho py)
27 The maxsplit argument indicates the maximum number of splits allowed
28 Use re package with text file
29 With re split you can split on any sequence of space characters and commas