Answers for "regex same number repeated"

0

regex same number repeated

\b(\d)\1+\b

Explanation:

\b   # match word boundary
(\d) # match digit remember it
\1+  # match one or more instances of the previously matched digit
\b   # match word boundary
Posted by: Guest on June-20-2021

Browse Popular Code Answers by Language