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
Most upvotes
Most downvotes
Highest Score
Lowest Score
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 18,040 community submitted regex patterns...
1
Repeated characters
PCRE2 (PHP >=7.3)
remove repeated characters from a string
Submitted by
Vishal Kumar
-
21 days ago
1
Regex for Matching Documentation Websites
ECMAScript (JavaScript)
Regex for Matching Documentation Websites This repository contains a powerful regular expression designed to match URLs that commonly point to documentation-related websites. The regex is optimized for flexibility, covering various terms and URL patterns. Regex Pattern ...
Submitted by
jgeofil
-
22 days ago
1
CIMTS business situation
PCRE2 (PHP >=7.3)
just playing around
Submitted by
Jeremiah
-
23 days ago
1
Any Unicode dash or its HTML escaped version
ECMAScript (JavaScript)
Match any of the weird dashes people figure out how to put in their data
Submitted by
anonymous
-
a month ago
(Last modified a month ago)
1
simple email checker
PCRE2 (PHP >=7.3)
sees if it is a proper email or not
Submitted by
anonymous
-
a month ago
1
Finite automata Definition
PCRE2 (PHP >=7.3)
Parses and groups elements inside the definition of a finite automaton, defined by the following backus naur form state ::= [a-zA-Z]+ set_of_final_states ::= "final states" = {state} simbol ::= [a-zA-Z]...
Submitted by
viktorashi
-
a month ago
1
Finite automata definition
PCRE2 (PHP >=7.3)
parses and groups elements inside the definition of a finite automaton, defined by the following backus naur form state ::= [a-zA-Z]+ set_of_final_states ::= "final states" = {state} simbol ::= [a-zA-Z]...
Submitted by
anonymous
-
a month ago
1
Set of Finite Automata final states
PCRE2 (PHP >=7.3)
it parses and groups the final states of a finate automaton
Submitted by
viktorashi copil borfashi
-
a month ago
1
english sentence tokenizer
PCRE2 (PHP >=7.3)
This is an english sentence tokenizer; it tokenizes correct english sentences. This can be done in a very short, "regex" string. Incorrect sentence examples be like: awesome thats so cool!...
Submitted by
anonymous
-
a month ago
1
Clean unnecessary white spaces from JSON
PCRE2 (PHP >=7.3)
transform formatted JSON to one line by removing unneeded spaces.
Submitted by
anonymous
-
a month ago
(Last modified a month ago)
1
Match router
PCRE2 (PHP >=7.3)
Match for match everything between x and x
Submitted by
anonymous
-
a month ago
1
html tokenizer v1
PCRE2 (PHP >=7.3)
tokenizes your html (very buggy)
Submitted by
anonymous
-
a month ago
1
HTML PrimeNG (replace) empty opening and closing tags (into to self closed tags)
PCRE2 (PHP >=7.3)
This regular expresion matches opening and closing empty tags from PrimeNG library. This can be useful to replace it for self-closed tags which is available from Angular v15. Replacer: ``
Submitted by
https://sergiorey23.github.io/
-
a month ago
(Last modified a month ago)
1
UUID v7 Matching
PCRE2 (PHP >=7.3)
UUID v7 Resources: https://uuid7.com/ https://uuid.ramsey.dev/en/stable/rfc4122/version7.html https://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-04.html#name-uuid-version-7 ...
Submitted by
Regex by Ignacio del Corro / cxto21
-
a month ago
(Last modified a month ago)
1
Words that are only sequences of Chemical Element Symbols, allowing smushes
PCRE2 (PHP >=7.3)
This will match only words that include chemical elements: H + Og + W + Ar + Ts but not Eton. It allows internal overlap: LaG = La + Ag, and allows the first letter or last letter to be the end/start of a symbol to allow chaining. You can easily remove the various pieces, though. A single-line (non...
Submitted by
mrflip
-
a month ago
(Last modified a month ago)
1
Validate a comma separated list of IPv4 addresses, CIDRs, or IPv4 Ranges like 1.1.1.1-1.1.1.10
Golang
Simple Regex to *validate * (no extraction!) an IPv4 Range which can be a comma separated mixture of IPv4 addresses IPv4 CIDRs IPv4 Ranges like 1.1.1.1-1.1.1.10 Examples : ...
Submitted by
alucab
-
a month ago
1
test
ECMAScript (JavaScript)
testing
Submitted by
madgregory
-
a month ago
1
MobaXterm SSH session dump data
PCRE2 (PHP >=7.3)
Below regex pattern help to extract needful information from Portable export of SSH sessions. Although not complete, can help data extraction from export file.
Submitted by
anonymous
-
2 months ago
1
Russian phone number (российские номера телефонов)
PCRE2 (PHP >=7.3)
A regular expression for searching for phone numbers in the Russian format, taking into account different ways of writing the number, including spaces, brackets and dashes. Регулярное выражение для поиска номеров телефонов Российского формата. Учитывает написание номера через пробел, скобки, тире и ...
Submitted by
https://t.me/ds_ivanov
-
2 months ago
1
Factorization: Zero, Unit, Primes, or Composite?
.NET 7.0 (C#)
Description Inspects lines that contain only a character, let's say c, repeated n times. The name of the matching groups will tell you if n is 0, the unit 1, a prime number, or a composite number. Alternative ...
Submitted by
kevinhp
-
2 months ago
1
2
3
4
...
902
Community Library Entry
-2
Regular Expression
PCRE (PHP <7.3)
/
^
(
[
\w
-
\.
]
+
)
@
(
(
\[
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
)
|
(
(
[
\w
-
]
+
\.
)+
)
)
(
[
a
-
zA
-
Z
]
{2,4}
|
[
0
-
9
]
{1,3}
)
(
\]
?
)
$
/
Open regex in editor
Description
no description available
Submitted by
anonymous
-
10 years ago