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,020 community submitted regex patterns...
1
Pre tags and inner contents grabber for JavaScript
ECMAScript (JavaScript)
No /s, took quite a time to think.
Submitted by
Namikaze Ray a.k.a. Pendechosen
-
10 years ago
6
Split address line into street name and house number
PCRE (PHP <7.3)
This regular expression splits an address line like for example "1117 Franklin Blvd" into the street name and house number. It also supports addresses where street name and house number are the other way around (e.g. "Mustermannstr. 1"). Furthermore, this regular expression also supports address lin...
Submitted by
Andre Wisplinghoff
-
10 years ago
-2
SPLIT ADDRESS LINE INTO STREET NAME AND HOUSE NUMBER
PCRE (PHP <7.3)
This regular expression splits an address line like for example "1117 Franklin Blvd" into the street name and house number. It also supports addresses where street name and house number are the other way around (e.g. "Mustermannstr. 1"). Furthermore, this regular expression also supports address lin...
Submitted by
Andre Wisplinghoff
-
10 years ago
-1
Split address line into street name and house number
PCRE (PHP <7.3)
This regular expression splits an address line like for example "1117 Franklin Blvd" into the street name and house number. It also supports addresses where street name and house number are the other way around (e.g. "Mustermannstr. 1"). Furthermore, this regular expression also supports address li...
Submitted by
Andre Wisplinghoff
-
10 years ago
1
HTML Anchor <a> Tag Grabber(overcome newlines)
ECMAScript (JavaScript)
no description available
Submitted by
Namikaze Ray a.k.a Pendecosen
-
10 years ago
1
Output string is not displayed for given regex
PCRE (PHP <7.3)
I have this regex and input string. But nothing is displayed in output area. Could you please help to know why it is not displaying output? Thanks.
Submitted by
anonymous
-
10 years ago
0
1
PCRE (PHP <7.3)
1
Submitted by
anonymous
-
10 years ago
0
eksr
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
parenthesized numerical expression
PCRE (PHP <7.3)
no description available
Submitted by
pooty
-
10 years ago
2
Brazillian Phone Number Format (Formato de Num. de Telefone no Brasil)
ECMAScript (JavaScript)
no description available
Submitted by
Castrolol
-
10 years ago
1
Validate Url with or without http(s)://
PCRE (PHP <7.3)
This will validate whether you starts with http(s)://
Submitted by
Sanal Menon Kalipurayath
-
10 years ago
1
CEDICT Chinese dictionary line parts
PCRE (PHP <7.3)
Matches the four parts (simplified, traditional, pinyin, definition) of a CEDICT dictionary line
Submitted by
Hugh Grigg
-
10 years ago
1
Validate URLs
PCRE (PHP <7.3)
Someone on IRC posted the following site: https://mathiasbynens.be/demo/url-regex which challgenged me to write a decent regex to match valid URLs in that list. This regex works in both pcre and javascript (you'll have to replace the pcre-specific syntax to make it work in JS). Don't actually use t...
Submitted by
Firas Dib
-
10 years ago
1
Number 0-100, 2 decimals
PCRE (PHP <7.3)
A number between 0 and 100 (including them) with up to two decimals. The decimal separator can be . or , . Usefull for percentage.
Submitted by
anonymous
-
10 years ago
1
Email Check
PCRE (PHP <7.3)
Verify an email is OK
Submitted by
Will
-
10 years ago
1
regexp for Shahar
PCRE (PHP <7.3)
regexp for Shahar
Submitted by
Eugene
-
10 years ago
1
E-Mail
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
test
PCRE (PHP <7.3)
test
Submitted by
test
-
10 years ago
1
jonfir-question
PCRE (PHP <7.3)
its mysql config file, i need find user only [client] section (or take sure shat its section not content user)
Submitted by
jonfir
-
10 years ago
1
spaces in parenthesis
ECMAScript (JavaScript)
Eliminate spaces in the inner part of parenthesis.
Submitted by
Luis Colorado
-
10 years ago
1
...
855
856
857
858
859
...
901
Community Library Entry
2
Regular Expression
PCRE (PHP <7.3)
/
^
[
0
-
9
]
{3}
[
\
]
{0,1}
[
0
-
9
]
{3}
[
\
]
{0,1}
[
0
-
9
]
{4}
$
/
Open regex in editor
Description
Accepts spaces or not 1234567890 123 456 7890
Submitted by
Christopher Dufort
-
10 years ago