
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
Use Wildcard in Python Regular Expression
The following code uses the Python regex .()dot character for wildcard which stands for any character other than newline.
Example
import re rex = re.compile('th.s') l = "this, thus, just, then" print rex.findall(l)
Output
This gives the output
['this', 'thus']
Advertisements