
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
Find Repeating Digits in a Number Using Python Regular Expression
The following code using Python regex to find the repeating digits in given string
Example
import re result = re.search(r'(\d)\1{3}','54222267890' ) print result.group()
Output
This gives the output
2222
Advertisements