Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 140 community submitted regex patterns...
0
Camel-Case Splitter (preserves Acronyms)
.NET 7.0 (C#)
Splits camel-case string and preserves acronyms
Submitted by
Tyler S.
-
a year ago
1
...
5
6
7
4 digit numeric w/o leading zero and no repeat digits
-2
Regular Expression
PCRE (PHP <7.3)
/
^
(
[
1
-
9
]
)
(?!
\1
)
(
[
0
-
9
]
)
(?!
\1
|
\2
)
(
[
0
-
9
]
)
(?!
\1
|
\2
|
\3
)
(
[
0
-
9
]
)
$
/
gm
Open regex in editor
Description
A pcre that capture a 4-digit numeric that does not allow a leading zero and no repeat digits.
Submitted by
Jeff Thompson
-
9 years ago