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 11,660 community submitted regex patterns...
1
Reddit Links
PCRE2 (PHP >=7.3)
Check links for reddit.com and redd.it
Submitted by
adaragao
-
3 days ago
1
GS1 Transport Label (EAN-128) and parse the application identifiers datafields
.NET 7.0 (C#)
A regex to parse the GS1-128 transport / shipping label from multiple EAN-128. The Regex is generated from the offical GS1 specification will identify all datafields Like for example AI 00: Serial Shipping Container Code (SSCC) AI 01: Global Trade Item Number (GTIN) AI 02: Identification of trade i...
Submitted by
anonymous
-
6 days ago
(Last modified 6 days ago)
1
Generic Error Regex 1
PCRE2 (PHP >=7.3)
Check for errors in a verbose log.
Submitted by
bvoq
-
7 days ago
1
Codice Fiscale italiano
PCRE2 (PHP >=7.3)
[A-Z]{6}[0-9LMNPQRSTUV]{2}[ABCDEHLMPRST]{1}([1-9]|12|3[01]|4[1-9]|56|7[01]|LMNPQRSTUV){2}[A-Z]{1}[0-9LMNPQRSTUV]{3}[A-Z]{1} La regular expression riconosce i codici fiscali. Supporta omocodie ed effettua controllo ristretto sul giorno di nascita
Submitted by
Zeta-am
-
7 days ago
1
Bitcoin Address Validator
PCRE2 (PHP >=7.3)
A regex to validate Bitcoin addresses.
Submitted by
Rimblehelm
-
11 days ago
1
Polynomial extractor with real coefficient
PCRE2 (PHP >=7.3)
It matches any polynomial with integer or real coefficient
Submitted by
eFrim
-
11 days ago
(Last modified 10 days ago)
1
groupping by :#
PCRE2 (PHP >=7.3)
sed 's/\(:#\)./ -CLEARED-/g'
Submitted by
anonymous
-
14 days ago
1
happy birthday
PCRE2 (PHP >=7.3)
match hbds
Submitted by
anonymous
-
14 days ago
1
Regex to catch prices
PCRE2 (PHP >=7.3)
(faturou\s|faturamento de\s|faturei\s|de um faturamento )(mais\sde\s)(((((R\$)+(\s)(\d){1,6}(\s)((\.|\,)\d{1,3}|k|mil))))+|((de\s(\d){1,3}(k|mil)\spara\s(\d){1,3}(k|mil)))+)(\sde\sfaturamento)(\sem\s(menos\sde\s)(\d{1,2})\sdias)(\sfoi o que a minha (aluna|cliente|mentoranda|mentorada)+ faturou)(\sap...
Submitted by
Leonardo Paris
-
15 days ago
1
camelCase -> snake_case
PCRE2 (PHP >=7.3)
Works with many forms of alphanumeric camelCase camelCase camel camelCaseCaseCase... (with as many words as you want) ca65melCase (ca65mel_case) camelCCase (camel_c_case)...
Submitted by
inesvar
-
16 days ago
1
PascalCase -> snake_case
PCRE2 (PHP >=7.3)
Works with many forms of alphanumeric PascalCase PascalCase Pascal PascalCaseCase Pascal684Case (pascal684_case) Pas45calCase (pas45cal_case)...
Submitted by
inesvar
-
16 days ago
1
simple email validator
PCRE2 (PHP >=7.3)
Email address validator
Submitted by
anil
-
17 days ago
1
homework 1
PCRE2 (PHP >=7.3)
this is the answer for question 1
Submitted by
Christian Thrige Nielsen
-
19 days ago
1
Remove multiple forward slash from url
PCRE2 (PHP >=7.3)
(): This is a capturing group that matches any character except a colon :, and it captures this character for later use in the replacement. (/ {2,}): This part matches two or more consecutive forward slashes. The replacement part $1/ uses the captured character from the first part (which is any char...
Submitted by
Apon Ahmed
-
19 days ago
(Last modified 19 days ago)
1
Credit card regex
PCRE2 (PHP >=7.3)
Credit card name and surname with turkish char
Submitted by
anonymous
-
21 days ago
0
PLP redirection
PCRE2 (PHP >=7.3)
PLP redirection
Submitted by
anonymous
-
22 days ago
1
Regex to Match Regular Expression in JS/TS
PCRE2 (PHP >=7.3)
Matches regular expressions in JS/TS (EcmaScript) code including none or one of the flags g, i`, m, u, y`.
Submitted by
Redu
-
22 days ago
1
Match Single Line (//) Comments in JSON
PCRE2 (PHP >=7.3)
Doesn't get confused by the url values like "https://www.example.com" or "file:///some.txt"
Submitted by
Redu
-
22 days ago
(Last modified 22 days ago)
1
username_unix.gamesave
PCRE2 (PHP >=7.3)
for username_unix.gamesave
Submitted by
anonymous
-
25 days ago
1
Estract download speed from Ookla Speedtest output
PCRE2 (PHP >=7.3)
surely can be optimized more, but it does the job and the interested number of lines is fairly low.
Submitted by
anonymous
-
25 days ago
1
2
3
...
583
determine if input text is an URL
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(
(
https
?
:
)?
\/\/
)?
(
(
[
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)+
(
:
(
[
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)+
)?
@
)?
(
[
\d\w
]
[
-
\d\w
]
{0,253}
[
\d\w
]
\.
)+
[
\w
]
{2,63}
(
:
[
\d
]
+
)?
(
\/
(
[
-+_~.
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)*
)*
(
\?
(
&
?
(
[
-+_~.
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)
=
?
)*
)?
(
#
(
[
-+_~.
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)*
)?
/
gmi
Open regex in editor
Description
determine if input text is an URL
Submitted by
anonymous
-
a year ago