Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
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 (C#)
Rust
Sponsors
Community Patterns
Search among 2,360 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
USA & Canadian Phones
PCRE2 (PHP >=7.3)
Regex for USA and Canadian phones (without +)
Submitted by
anonymous
-
a few seconds ago
2023-10-04 09:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Emirati Phones
PCRE2 (PHP >=7.3)
Regex for Emirati phones (without +)
Submitted by
anonymous
-
a minute ago
2023-10-04 09:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Japanese Phones
PCRE2 (PHP >=7.3)
Regex for Japanese phones (without +)
Submitted by
anonymous
-
2 minutes ago
2023-10-04 08:59
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Indonesian Phones
PCRE2 (PHP >=7.3)
Regex for Indonesian phones (without +)
Submitted by
anonymous
-
3 minutes ago
2023-10-04 08:58
(Last modified 3 minutes ago)
2023-10-04 08:58
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Indian Phones
PCRE2 (PHP >=7.3)
Regex for Indian phones (without +)
Submitted by
anonymous
-
4 minutes ago
2023-10-04 08:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Swedish Phones
PCRE2 (PHP >=7.3)
Regex for Swedish phones (without +)
Submitted by
anonymous
-
11 minutes ago
2023-10-04 08:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Irish Phones
PCRE2 (PHP >=7.3)
Regex for Irish phones (without +)
Submitted by
anonymous
-
12 minutes ago
2023-10-04 08:49
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
UK phones
PCRE2 (PHP >=7.3)
Regex for UK phones (without +)
Submitted by
anonymous
-
13 minutes ago
2023-10-04 08:49
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
German Phones
PCRE2 (PHP >=7.3)
Regex for German phones (without +)
Submitted by
anonymous
-
14 minutes ago
2023-10-04 08:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Italian Phones
PCRE2 (PHP >=7.3)
Regex for Italian phones (without +)
Submitted by
anonymous
-
16 minutes ago
2023-10-04 08:46
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Andorran Phones
PCRE2 (PHP >=7.3)
Regex for Andorran phones (without +)
Submitted by
anonymous
-
17 minutes ago
2023-10-04 08:44
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Portuguese Phones
PCRE2 (PHP >=7.3)
Regex for Portuguese phones (without +)
Submitted by
anonymous
-
18 minutes ago
2023-10-04 08:44
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Australian Phones
PCRE2 (PHP >=7.3)
Regex for Australian phones (without +)
Submitted by
anonymous
-
22 minutes ago
2023-10-04 08:39
(Last modified 7 minutes ago)
2023-10-04 08:54
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
France Phones
PCRE2 (PHP >=7.3)
Regex for France phones (without +)
Submitted by
anonymous
-
26 minutes ago
2023-10-04 08:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Spain Phones
PCRE2 (PHP >=7.3)
Regex for Spain phones (without +)
Submitted by
anonymous
-
28 minutes ago
2023-10-04 08:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Gabon Phones
PCRE2 (PHP >=7.3)
Regex for Gabon phones (without +)
Submitted by
anonymous
-
29 minutes ago
2023-10-04 08:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Authors with year reference
PCRE2 (PHP >=7.3)
Try to find the author of a sentence following the next format: (Author, year) (Author, year; Author, year)
Submitted by
Antonio GarcĂa Maestre
-
an hour ago
2023-10-04 08:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
[sample]
PCRE2 (PHP >=7.3)
sample regular expression
Submitted by
anonymous
-
3 hours ago
2023-10-04 06:27
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Unity Version Major & Minor (e.g. 2023.3)
PCRE2 (PHP >=7.3)
Match Unity Version as "Major.Minor"."Patch"
Submitted by
anonymous
-
13 hours ago
2023-10-03 19:58
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
email
PCRE2 (PHP >=7.3)
list of email
Submitted by
anonymous
-
a day ago
2023-10-03 07:05
1
2
3
4
...
118
Remove XML whitespace
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
(?<=
>
)
\s
*
(
[^
<
]
*
[^
\s
<
]
)
\s
*
(?=
<
)
|
(?<=
>
)
\s
*
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
4 months ago
2023-05-23 06:09