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 13,720 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Fanfiction.net Genres
PCRE (PHP <7.3)
Matches a string if it contains any of the valid FFN genres.
Submitted by
anonymous
-
8 years ago
2015-12-04 17:28
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
aws-elb-access-log
PCRE (PHP <7.3)
ELB log parser
Submitted by
Peker Mert Oksuz
-
8 years ago
2015-12-04 15:43
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Removes duplicate lines in text editor
PCRE (PHP <7.3)
"dot matches newline" must be activated. Search and replace by "" (empty string) removes duplicate lines anywhere in text. Example for Notepad++ use shown under http://stackoverflow.com/questions/3958350/removing-duplicate-rows-in-notepad
Submitted by
Stackoverflow user stema
-
8 years ago
2015-12-04 13:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
<xs:pattern value="[!-ÿ]{1}[ -ÿ]{0,}[!-ÿ]{1}|[!-ÿ]{1}"/>
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-04 13:16
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
IP:Port
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-04 12:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
to:192.168.20.55:80
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-04 11:40
0
3 upvotes, 3 downvotes (score 18.8%) (You must be signed in to vote)
last name|firstname|463
PCRE (PHP <7.3)
no description available
Submitted by
Chris
-
8 years ago
2015-12-04 09:37
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
G-Code 1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-04 07:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
nginx_luedong
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-04 06:17
-1
1 upvotes, 2 downvotes (score 6.1%) (You must be signed in to vote)
Hostname validator
PCRE (PHP <7.3)
Validates the format of IPv4/IPv6 hostnames as well as domain names.
Submitted by
anonymous
-
8 years ago
2015-12-04 02:51
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Markdown Header
PCRE (PHP <7.3)
no description available
Submitted by
lasta
-
8 years ago
2015-12-04 02:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
IP URL
PCRE (PHP <7.3)
Get all URLS that are IP Based URLS
Submitted by
notrin
-
8 years ago
2015-12-03 23:22
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get content from CSS url() param
PCRE (PHP <7.3)
Get data or url from css > background > url option.
Submitted by
Gokhan Ege
-
8 years ago
2015-12-03 22:29
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Slovak phone number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-03 21:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
email Validation
PCRE (PHP <7.3)
The email validation for registration
Submitted by
Jian
-
8 years ago
2015-12-03 18:57
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
FFXIV Lodestone Character profile
PCRE (PHP <7.3)
Parses full url up to character page. Ignores http:// and anything after character ID
Submitted by
JaveLiner
-
8 years ago
2015-12-03 15:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Decimal Range
PCRE (PHP <7.3)
Matches any range valid numerical range. i.e 1-5 ; 1.0-5 ; 1.0-5.0 ; 1-5.0
Submitted by
James Lewis
-
8 years ago
2015-12-03 12:51
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
NATO Stock Number (with or without NSC)
PCRE (PHP <7.3)
RegEx to validate a NATO Stock Number with or without the NATO Stock Code and with or without dashes
Submitted by
Matthew Perryman
-
8 years ago
2015-12-03 09:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
OCEAN - SELECT to DropDown grid
PCRE (PHP <7.3)
no description available
Submitted by
UndeadScythes
-
8 years ago
2015-12-03 09:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URN, match blocchi
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-03 08:56
1
...
580
581
582
583
584
585
586
...
686
RGB [0;255]
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(
(?<!
\d
|
\.
)
(
[
0
-
9
]
?
[
0
-
9
]
|
1
[
0
-
9
]
[
0
-
9
]
|
2
[
0
-
4
]
[
0
-
9
]
|
25
[
0
-
5
]
)
(?!
\d
|
\.
)
*
[
,;
]
*
){2}
(?<!
\d
|
\.
)
(
[
0
-
9
]
?
[
0
-
9
]
|
1
[
0
-
9
]
[
0
-
9
]
|
2
[
0
-
4
]
[
0
-
9
]
|
25
[
0
-
5
]
)
(?!
\d
|
\.
)
/
gi
Open regex in editor
Description
Loading markdown...
Submitted by
theBlueBisu
-
8 years ago
2015-11-16 21:17