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...
2
Out of office
ECMAScript (JavaScript)
This is why
Submitted by
anonymous
-
10 years ago
-2
Test email
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
Regex
PCRE (PHP <7.3)
Test
Submitted by
anonymous
-
10 years ago
1
Find a select or select top in a query
ECMAScript (JavaScript)
Some times we need replace de first select in a query to another. In my case i want replace to "Select top 1". With that a can replace any select to select top 1.
Submitted by
Diego Troitiño
-
10 years ago
0
Remove double-slash comments
Python
This regex removes double-slash comments while avoiding anything between 'quotes' or "double quotes".
Submitted by
jlacroix
-
10 years ago
1
Chords
ECMAScript (JavaScript)
Expression to match a large amount of possible musical chords. From what I understand from musicians, the number of chords is basically infinite, but you will still find a certain scope being used freuently.
Submitted by
A=B
-
10 years ago
1
How to get various values within a pipe delimited string
PCRE (PHP <7.3)
We have a pipe delimited text file and each new record is separated by a CRLF. Each record has a fixed number of pipes, but not every column or field is valued, so there may be 2 or more pipes together. Is there a way to write a regex to parse out the third or fifth value? Many thanks in advance.
Submitted by
Jon
-
10 years ago
-2
cofor
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
Regexp haus
PCRE (PHP <7.3)
Ejemplo para parsear direcciones de Haus
Submitted by
Leo
-
10 years ago
0
Finnsih date with the "dd mmmm yyyy" format
Python
Parse a Finnish date with de "dd. mmmm yyyy" or "dd.mm.yyyy" format.
Submitted by
Tantale
-
10 years ago
9
English date in "dd mmmm yyyy" format
Python
Parse an English date following the "dd mmmm yyyy" format.
Submitted by
Tantale
-
10 years ago
1
Bulgarian date "dd mmmm yyyy" format
Python
Parse a bulgarian date following the "dd mmmm yyyy" format.
Submitted by
Tantale
-
10 years ago
1
Long slovak date with the "dd. mmmm yyy" format
Python
Match a slovak date following the "dd. mmmm yyy" format.
Submitted by
Tantale
-
10 years ago
1
Window Spacer type
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
Convert PHP var to array
PCRE (PHP <7.3)
I use this regex to quickly convert the class' variables into a string which is usable with the "function" array. I copy-paste the varialbe name and use this regex. Useful to convert all your variable and put it in the magic function __sleep(). After it, you can delete the variables you don't want.
Submitted by
anonymous
-
10 years ago
1
URL
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
Parser
ECMAScript (JavaScript)
Need everything inside this as separate variable :)
Submitted by
anonymous
-
10 years ago
1
Date and time capturer
PCRE (PHP <7.3)
Works for the Julian calendar, dates between 0000-01-01 and 9999-12-31. Includes my birth date in the 4th example.
Submitted by
luis140219 on GitHub
-
10 years ago
7
validate US (5 & 9 digit) ZipCodes and CA PostalCodes
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
Some OR regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
...
848
849
850
851
852
...
902
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
^
(?:
\+
62
|
\(
0
\d
{2,3}
\)
|
0
)
\s
?
(?:
361
|
8
[
17
]
\s
?
\d
?
)?
(?:
[
-
]
?
\d
{3,4}
){2,3}
$
/
gm
Open regex in editor
Description
f
Submitted by
anonymous
-
2 years ago