Regular Expressions 101

Community Patterns

All Same Number

0

Regular Expression
Python

r"
^([0-9])\1*$
"

Description

Check all the numbers are same in a string.

Submitted by DJA - 8 years ago