
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is difference between '.' , '?' and '*' in Python regular expression?
Special character dot '.'
(Dot.) In the default mode, this matches any character except a newline. If the DOTALL flag has been specified, this matches any character including a newline.
Special character '?'
Causes the resulting RE to match 0 or 1 repetitions of the preceding RE. ab? will match either ‘a’ or ‘ab’
Special character asterisk'*"
Causes the resulting RE to match 0 or more repetitions of the preceding RE, as many repetitions as are possible. ab* will match ‘a’, ‘ab’, or ‘a’ followed by any number of ‘b’s.
- Related Questions & Answers
- what is the main difference between '=' and '==' operators in javascript?
- What is the difference between 'isset()' and '!empty()' in PHP?
- What is the difference between 'log' and 'symlog' in matplotlib?
- Difference between 'include' and 'extend' in Ruby
- Difference between 'struct' and 'typedef struct' in C++?
- The difference between 'AND' and '&&' in MySQL?
- Difference between 'struct' and 'typedef struct' in C++ program?
- Write the main difference between '==' and '===' operators in javascript?
- Replace '*' with '^' with Java Regular Expressions
- What is the difference between 'throw new Error' and 'throw someObject' in javascript?
- What is the difference between the 'COPY' and 'ADD' commands in a Dockerfile?
- What is the difference between 'except Exception as e' and 'except Exception, e' in Python?
- Update 'a' record with 'b' and 'b' with 'a' in a MySQL column (swap) with only 'a' and 'b' values?
- Finding the sum of two numbers without using '+', '-', '/', '*' in JavaScript
- What is the relation between 'null' and '0' in JavaScript?
Advertisements