পাইথন ডকুমেন্টেশন থেকে
নন-স্পেশাল ক্যারেক্টার নিজেদের সাথে ম্যাচ করে। স্পেশাল ক্যারেক্টার নিজেদের সাথে ম্যাচ করে না -
| \ | Escape special char or start a sequence. |
| . | Match any char except newline, see re.DOTALL |
| ^ | Match start of the string, see re.MULTILINE |
| $ | Match end of the string, see re.MULTILINE |
| [ ] | Enclose a set of matchable chars |
| R|S | Match either regex R or regex S. |
| () | Create capture group, & indicate precedence |
'[' এর পর, একটি সেট এনক্লোজ করার সময়, শুধু নিচের স্পেশাল ক্যারেক্টারগুলো থাকে -
| ] | End the set, if not the 1st char |
| - | A range, eg. a-c matches a, b or c |
| ^ | Negate the set only if it is the 1st char |
কোয়ান্টিফায়ার (অ্যাপেন্ড '?' ফর নন-গ্রিডি) -
| {m} | Exactly m repetitions |
| {m,n} | From m (default 0) to n (default infinity) |
| * | 0 or more. Same as {,} |
| + | 1 or more. Same as {1,} |
| ? | 0 or 1. Same as {,1} |