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 11,360 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Select any decimal
PCRE (PHP <7.3)
With this pattern possible select decimal that cantain comma or space
Submitted by
natan
-
8 years ago
2015-06-30 09:03
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Получение числа, которым заканчивается строка
PCRE (PHP <7.3)
no description available
Submitted by
summer_rain
-
8 years ago
2015-06-30 08:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regex_Article
PCRE (PHP <7.3)
Start with two letters and followed by any number of Integers
Submitted by
S
-
8 years ago
2015-06-30 07:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
inline-sub-via-sed
PCRE (PHP <7.3)
regex for inline substitution w/ sed
Submitted by
anonymous
-
8 years ago
2015-06-29 23:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Crop mikrotik neighbor lines
PCRE (PHP <7.3)
no description available
Submitted by
neilius + Captain_Haddock
-
8 years ago
2015-06-29 18:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract values from log
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-29 14:54
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Cisco ASA
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-29 12:57
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Beginning of word
PCRE (PHP <7.3)
When looking for day, Sunday should not be matched.
Submitted by
Ben
-
8 years ago
2015-06-29 08:46
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
username in url
PCRE (PHP <7.3)
should start with letter follow by letters and numbers and (-) - zero or more can't start or finish with (-) can't have two or more consecutive (-) char
Submitted by
Ali Azmoude
-
8 years ago
2015-06-27 12:45
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
FRDocExpression
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-26 15:49
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
Not Empty String
PCRE (PHP <7.3)
Match a not-empty string. A string with only spaces or no characters is an empty-string. When match something, mathc all the string with the exception of the eventually space at the and
Submitted by
Luca
-
8 years ago
2015-06-26 11:24
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
111
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-26 07:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
L0
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-26 06:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
add hint path to csproj references
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-26 05:39
1
4 upvotes, 3 downvotes (score 25%) (You must be signed in to vote)
Extract domain and path from video embeds
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-26 01:10
-3
5 upvotes, 8 downvotes (score 17.7%) (You must be signed in to vote)
FQDN Fully Qualified Domain Name
PCRE (PHP <7.3)
no description available
Submitted by
Rafael Justo and Mauro Trajber
-
8 years ago
2015-06-25 16:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Encontrar espaço em branco duplicado
PCRE (PHP <7.3)
White space
Submitted by
Gustavo Américo
-
8 years ago
2015-06-25 15:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
extract java property name and value
PCRE (PHP <7.3)
correctly handle the case where the value is splitted on multiple lines.
Submitted by
Zart Colwing
-
8 years ago
2015-06-25 15:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Single-line comment extraction
PCRE (PHP <7.3)
no description available
Submitted by
Jeff Hansen
-
8 years ago
2015-06-25 12:58
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
EIS Chef Runlist Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-25 03:18
1
...
520
521
522
523
524
525
526
...
568
phone number
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(
\d
{1,4}
?
[
-.
\s
]
?
)*
/
Open regex in editor
Description
Loading markdown...
Submitted by
sylvain
-
8 years ago
2015-06-09 11:32