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...
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
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL infos
PCRE (PHP <7.3)
A powerful regex (fewest steps possible) which gives you all the information about urls.
Submitted by
MCMainiac
-
8 years ago
2015-06-24 21:50
0
6 upvotes, 6 downvotes (score 25.4%) (You must be signed in to vote)
Fully Qualified Domain Name FQDN
PCRE (PHP <7.3)
Fully qualified domain name validation
Submitted by
ximbs
-
8 years ago
2015-06-24 20:11
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CSS Minimizer
PCRE (PHP <7.3)
Takes any valid CSS and minimizes it, removing comments and whitespace. Can be called with something like PHP's preg_replace() to dynamically minimize css files.
Submitted by
skoskie
-
8 years ago
2015-06-24 17:28
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Name Validation
PCRE (PHP <7.3)
Start with capital letter. Allowed special characters '(Apostrophe) -(hyphen) .(dot) (space) and can not end with -(Hyphen)
Submitted by
Venu Nimmagadda
-
8 years ago
2015-06-24 14:41
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
FIND BETWEEN QUOTES
PCRE (PHP <7.3)
Dovrebbe beccare anche eventuali caratteri '' (due apici singoli)
Submitted by
m.montesi
-
8 years ago
2015-06-24 10:24
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Parse all adresses in href
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-24 06:30
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
4shared
PCRE (PHP <7.3)
www.4shared.com
Submitted by
guru
-
8 years ago
2015-06-24 05:50
1
...
520
521
522
523
524
525
526
...
568
From HireDesk Select to Drupal Select List
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(
.
*
?
)
\[
(
.
*
)
\]
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-06-03 20:44