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
Community Patterns
Search among 14,700 community submitted regex patterns...
0
Todo
ECMAScript (JavaScript)
Regex to match consecutive identical characters. Then replace each match with `` Eg: "Hello" will yield "H1e1l2o1"
Submitted by
Chief A
-
3 years ago
0
CPF
PCRE (PHP <7.3)
Regra de validação de CPF.
Submitted by
anonymous
-
3 years ago
0
CFF-definitions.orcid
Python
Pattern for validating a definitions.orcid value in the Citation File Format (CFF)
Submitted by
Stephan Druskat, Jurriaan H. Spaaks
-
3 years ago
0
Match first letter of words for names
PCRE (PHP <7.3)
Also matches the first letter after ' or -
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Semver
PCRE (PHP <7.3)
Public library
Submitted by
Masoud shokohi
-
3 years ago
0
Replace <font color="stuff"> <span> tag
ECMAScript (JavaScript)
This regex fixes tags that contain a color attribute, replacing them with tags containing a style attribute
Submitted by
Alecto Irene Perez
-
3 years ago
0
IPv4 address
ECMAScript (JavaScript)
IPv4 address RegExp.
Submitted by
Sling
-
3 years ago
0
ESO
ECMAScript (JavaScript)
eso
Submitted by
KC
-
3 years ago
0
Dates in fluent language
ECMAScript (JavaScript)
Dates in fluent language
Submitted by
xxx
-
3 years ago
0
Get the number which length = 15 in string
ECMAScript (JavaScript)
Match the number which length = 15 in string
Submitted by
TQT
-
3 years ago
0
Extract the last word in a string
ECMAScript (JavaScript)
Match the last word in a string
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Password Validator
ECMAScript (JavaScript)
Requirements: 8 characters 1 number 1 symbol Note: Case Insensitive
Submitted by
Srinivas
-
3 years ago
0
Perfect Time timestamp
PCRE (PHP <7.3)
https://github.com/BlueHuskyStudios/Perfect-Time/
Submitted by
Ky Leggiero
-
3 years ago
0
YouTube ID receiver
ECMAScript (JavaScript)
Detects YouTube link in the standard format and shortcuts and it receives the ID of the YT video.
Submitted by
Velidan
-
3 years ago
0
Phone Regex
Python
For Phone Numbers
Submitted by
anonymous
-
3 years ago
0
Multi Language Letters with single space, no symbol or number or trailing spaces
ECMAScript (JavaScript)
This is tedious
Submitted by
anonymous
-
3 years ago
0
my birthday pattern
PCRE (PHP <7.3)
must match format: yyyy-MM-dd
Submitted by
anonymous
-
3 years ago
0
HTML Document or Fragment Heuristic
Python
From the StackOverflow question "Check if a string is html or not" there are many examples and a few approaches, some more expensive than others. Full DOM parsing and detecting constructed DOM elements is sure-fire, but slow, requiring a browser with parser and DOM representation. Regular expression...
Submitted by
Alice Bevan-McGregor
-
3 years ago
0
Get number in the middle of string
Python
From Rp. 1.000.005,52 (35 %) to 1.000.005,52
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Replace First and Last Word in string
Python
From Rp. 1000 (3 %) to 1000
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
1
...
681
682
683
684
685
...
735
Full URI Mapping
2
Regular Expression
PCRE (PHP <7.3)
/
(?:
(
[^
\:
]
*
)
\:\/\/
)?
(?:
(
[^
\:\@
]
*
)
(?:
\:
(
[^
\@
]
*
)
)?
\@
)?
(?:
(
[^
\/\:
]
*
)
\.
(?=
[^
\.\/\:
]
*
\.
[^
\.\/\:
]
*
)
)?
(
[^
\.\/\:
]
*
)
(?:
\.
(
[^
\/\.\:
]
*
)
)?
(?:
\:
(
[
0
-
9
]
*
)
)?
(
\/
[^
\?
#
]
*
(?=
.
*
?
\/
)
\/
)?
(
[^
\?
#
]
*
)?
(?:
\?
(
[^
#
]
*
)
)?
(?:
#
(
.
*
)
)?
/
gm
Open regex in editor
Description
Everything, including proto, user:pass, host, query params and anchors
Submitted by
baadf00d
-
9 years ago