Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.
Regular
Expressions
101
@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
What's new?
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2
PCRE
ECMAScript
Python
Golang
Java
.NET
Sponsors
All your environment variables, in one place
Library entries
Search library
-2
1 upvotes, 3 downvotes (25% like it) (You must be signed in to vote)
pcre
Camelize JSON
no description available
Submitted by
anonymous
-
8 years ago
-2
1 upvotes, 3 downvotes (25% like it) (You must be signed in to vote)
pcre
Substitute text between brackets
no description available
Submitted by
anonymous
-
8 years ago
-2
1 upvotes, 3 downvotes (25% like it) (You must be signed in to vote)
pcre
French phone attempt
no description available
Submitted by
anonymous
-
8 years ago
-2
1 upvotes, 3 downvotes (25% like it) (You must be signed in to vote)
pcre
Brazillian Telephone Number validator
A basic validator for BR phone numbers
Submitted by
Yemolai
-
8 years ago
-2
1 upvotes, 3 downvotes (25% like it) (You must be signed in to vote)
pcre
Find labels without preferredMaxLayoutWidth and multiple lines in Appl
Allows to find label generating warnings like "Automatic Preferred Max Layout Width before iOS 8.0" in XCode
Submitted by
Alessio Anesa
-
8 years ago
-2
1 upvotes, 3 downvotes (25% like it) (You must be signed in to vote)
pcre
remove eval(base64_decode( ));
\seval\(base64_decode\(?\)\);
Submitted by
manish kumar
-
8 years ago
-2
2 upvotes, 4 downvotes (33% like it) (You must be signed in to vote)
javascript
SQL Injection
SQL injection regEx pattern
Submitted by
Darshan Patil
-
8 years ago
-2
3 upvotes, 5 downvotes (38% like it) (You must be signed in to vote)
javascript
search all special characters
no description available
Submitted by
rlynjb
-
8 years ago
-2
1 upvotes, 3 downvotes (25% like it) (You must be signed in to vote)
pcre
email
matches normal email addresses like example@gmail.com but also addresses with ip addresses like example@192.168.0.34 (not ipv6)
Submitted by
Adrian Kühni
-
8 years ago
-2
1 upvotes, 3 downvotes (25% like it) (You must be signed in to vote)
javascript
Name/Surname
Regex to constrain a text to have at least 2 strings. Compatible with 2nd-3rd-Nth names/surnames.
Submitted by
BigL
-
8 years ago
-2
8 upvotes, 10 downvotes (44% like it) (You must be signed in to vote)
javascript
Valid Email
Use this Regex for server-side validation also with some slight modifications like so for .NET -- @\w+([-+.']\w+)@\w+([-.]\w+)\.[a-zA-Z0-9]{2,6}(-.{2,6})*;
Submitted by
Fred Scales
-
8 years ago
-2
0 upvotes, 2 downvotes (0% like it) (You must be signed in to vote)
javascript
Roman numbers
This regex matches roman numbers from 1 (I) to 3999 (MMMCMXCIX)
Submitted by
Nicolò Ribaudo
-
8 years ago
-2
0 upvotes, 2 downvotes (0% like it) (You must be signed in to vote)
pcre
float
matches 123.4f 123.4F .4f .4F 5f 5F
Submitted by
Mateusz Paluch
-
8 years ago
-2
0 upvotes, 2 downvotes (0% like it) (You must be signed in to vote)
pcre
boolean
Value must be either true or false
Submitted by
nstaal
-
8 years ago
-2
1 upvotes, 3 downvotes (25% like it) (You must be signed in to vote)
python
match commas between sets or members, but not inside members.
matches only those commas that are between sets, or between members of a set. does not match commas that are inside members.
Submitted by
Amrit Kohli
-
8 years ago
-2
0 upvotes, 2 downvotes (0% like it) (You must be signed in to vote)
javascript
Multiple Email Address Validation
Validates Multiple email addresses seperated by comma.
Submitted by
Rajesh Badam
-
8 years ago
-2
4 upvotes, 6 downvotes (40% like it) (You must be signed in to vote)
python
Between two strings
Awesome explanation of nested lookbacks
Submitted by
OnlineCop
-
8 years ago
-2
1 upvotes, 3 downvotes (25% like it) (You must be signed in to vote)
javascript
Validating comma delimited strings for whitespaces & extra commas
Validating comma delimited strings for whitespaces & extra commas -- +(,()+){0,}
Submitted by
Cyril Mathew
-
8 years ago
-2
1 upvotes, 3 downvotes (25% like it) (You must be signed in to vote)
pcre
Simple Username Pattern
a simple username pattern
Submitted by
Saeed Tabrizi
-
8 years ago
-2
1 upvotes, 3 downvotes (25% like it) (You must be signed in to vote)
pcre
DOTNET
no description available
Submitted by
anonymous
-
8 years ago
1
...
737
738
739
740
741
742
743
...
745
trim
Vote
106
600 upvotes, 494 downvotes (55% like it) (You must be signed in to vote)
Regular Expression
javascript
/
^
[
\s
]
*
(
.
*
?
)
[
\s
]
*
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
fp
- 10 years ago