![]() ![]() The backslash (\) makes sure that the character is not treated in a special way. Let’s discuss each of these metacharacters in detail: 1. Indicate the number of occurrences of a preceding regex to match. Means OR (Matches with any of the characters separated by it.Īny number of occurrences (including 0 occurrences) Used to drop the special meaning of character following it They will be used in functions of module re. Below is the list of metacharacters. To understand the RE analogy, Metacharacters are useful and important. Metacharacters are the characters with special meaning. This is because the regular expression engine uses \ character for its own escaping purpose.īefore starting with the Python regex module let’s see how to actually write regex using metacharacters or special sequences. The raw string is slightly different from a regular string, it won’t interpret the \ character as an escape character. Note: Here r character (r’portal’) stands for raw, not regex. ISRO CS Syllabus for Scientist/Engineer Exam. ![]() ![]() ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.Top 10 System Design Interview Questions and Answers.Top 20 Puzzles Commonly Asked During SDE Interviews.Top 100 DSA Interview Questions Topic-wise. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |