regexmatch.dev
Explore
Open main menu
Save & Share
Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit
Match numbers with consecutive digits
Published on Tue Mar 01 2022
Match numbers with consecutive digits and of length 3.
Regex
Test String
012 013 019 023 024 029 034 035 039 045 046 049 056 057 059 067 068 069 078 079 089 911 900 891 000 010 011 987 876 765 654 543 432 321 210
Additional matching regexes for
Match numbers with consecutive digits
Match numbers with consecutive digits
Match numbers with consecutive digits and of length 3.
prime factorization
matches only non-prime numbers; match length is smallest divisor
Simple TIN number regex
Only accept numerics/digits and hyphens, forbidding them at the start and the end of the number, and avoid two consecutive occurrences. Assuming the app validates the length.
Simple TIN number regex
Only accept numerics/digits and hyphens, forbidding them at the start and the end of the number, and avoid two consecutive occurrences. The length of the input is limited by the app.
Simple TIN number regex
- Only accept numerics/digits and hyphens, forbidding them at the start and the end of the number, and avoid two consecutive occurrences.
sha512 - letters and numbers, without special characters. length 512
Just capital **letters and numbers**, **without special characters**. String length 512
Match all numbers
Match all numbers from a string.
Inverse Match
inverse match letters, numbers, and underscores
Single lone digits
Find single digits that are not part of an integer. For example, "27" should not match, but "27.1" will match the "1". "27.11" won't match.
How to limit total number of characters of match
I need to match a pattern as follows with the added limitation that the match must be exactly 7 characters long: /^\d*[a-zA-Z]\d*$/ In words, this is a 7 character sequence of 6 digits and one alphabetic character in any order. How do I limit the overall length to 7 using regex? Thanks!