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 2,500 community submitted regex patterns...
0
Find missing space around operators (=, +, -, *, /)
Python
no description available
Submitted by
rugk
-
8 years ago
0
IP address a.b.c.d form with range from 0 to 255 for each letters
Python
Are you pissed off with your regular expression homework? well then. here is the answer. ^([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))\.([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))\.([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))\.([0-9]|1-9|1(0-9)|2(0-4|5[0-5]))$
Submitted by
Abdulaziz
-
8 years ago
0
CSV remove trailing spaces
Python
Remove trailing spaces from CSV files
Submitted by
destegabry
-
8 years ago
0
Words with spaces in-between
Python
Matches words (with certain special chars) and one or more spaces in between those words.
Submitted by
JAVA
-
8 years ago
0
Phone number extract
Python
Used to get the phone number from a list of phone numbers
Submitted by
jmitz
-
8 years ago
0
Find datetime directory
Python
no description available
Submitted by
anonymous
-
8 years ago
0
Last SEO RegExp
Python
Last SEO RegExp
Submitted by
Jay Patel
-
8 years ago
0
Apache Log Format Parser
Python
no description available
Submitted by
anonymous
-
8 years ago
0
exclude a list of words
Python
exclude a list of words, in this case, "hello" and "you"
Submitted by
Z
-
8 years ago
0
Find a quoted unix style path in text block
Python
Find a quoted unix style path in text block, breaking the text block into constituent parts, 1 before the quoted path starts 2 the path 3 the filename 4 whats left
Submitted by
AndyGif
-
8 years ago
0
phone number
Python
no description available
Submitted by
Dries Werckx
-
8 years ago
0
All Same Number
Python
Check all the numbers are same in a string.
Submitted by
DJA
-
8 years ago
0
Arabic letters Regex
Python
Regex for matching only Arabic letters characters
Submitted by
Waleed Abo Bakr Mahmoud
-
8 years ago
0
ip
Python
ip-adreese
Submitted by
anonymous
-
8 years ago
0
Validates argentinian telephone numbers
Python
To validate a number with this regular expression is mandatory to have the number group with only digits. You can modify the number group to accept spaces, hyphens, and dots with something like this: (?P[\d\-\.]+). Valid examples +54 9 11 50165564 54 2268 201232 15 50165564...
Submitted by
AgustÃn Bouillet
-
8 years ago
0
Newline matcher
Python
new line matcher
Submitted by
anonymous
-
8 years ago
0
fraction
Python
mixed or simple fraction with whitespace, optional dash as separator
Submitted by
anonymous
-
8 years ago
0
Valid UK postcode check
Python
Rather long, but pretty accurate, matches on BS7666 alpha num pattern. https://en.wikipedia.org/wiki/Postal_code#UK
Submitted by
anonymous
-
8 years ago
0
Bash (sed)
Java 8
no description available
Submitted by
anonymous
-
8 years ago
(Last modified 10 months ago)
0
UK Postcode (per government specification)
Python
UK postcode pattern as specified in offical document https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/283357/ILRSpecification2013_14Appendix_C_Dec2012_v1.pdf
Submitted by
anonymous
-
8 years ago
1
...
86
87
88
89
90
...
125
Phone number extract
0
Regular Expression
Python
r"
Phone:
\s
*
\(
{0,1}
(
\d
{3}
)
\)
{0,1}
\s
*
(
\d
{3}
)
-
*
(
\d
{4}
)
\n
{0,1}
"
g
Open regex in editor
Description
Used to get the phone number from a list of phone numbers
Submitted by
jmitz
-
8 years ago