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
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
If a line seems valid phone number, change to common format
Let's say a phone number is valid in case it has 11 digits (or 13 in case we use 00 instead of + ). Take those lines to common format. original idea was to remove all non-digit characters from those lines with simple match like but combined with look-ahead it just did not work, had to go through ea...
Submitted by
zolo
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
sql: insert into
insert into table ( a, b, c ) values ( " insert into values (1,2,3)",1,2.3,"a,b" ); insert into table (ee,bb,cc) values (aa,234,"asj",2.3);
Submitted by
suat erenler - sua.gen.tr
-
8 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
sql: insert into
insert into (a,b,c) values (1,2.3,"test");
Submitted by
suat erenler - sua.gen.tr
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
SQL: insert into
insert[\s]+into[\s]+\([\s](?.?)[\s]\)[\s]+values[\s]+\((?.?)[\s]*\);
Submitted by
suat erenler
-
8 years ago
2
4 upvotes, 2 downvotes (67% like it) (You must be signed in to vote)
pcre
Replace REM by blank
no description available
Submitted by
anonymous
-
8 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
credit card
Based on http://www.regular-expressions.info/creditcard.html This example includes test strings. This only validates the pattern, and not whether the credit card number passes a checksum validation. See the Luhn algorithm for details https://en.wikipedia.org/wiki/Luhn_algorithm...
Submitted by
Steve Piercy
-
8 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Simple @user replacement
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
HTML <script> regex
no description available
Submitted by
anonymous
-
8 years ago
1
2 upvotes, 1 downvotes (67% like it) (You must be signed in to vote)
pcre
Year regexp
regexp for year filtering
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
IP V4 with leading zero values
no description available
Submitted by
shA.t
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Extract jsfiddle links
Extract jsfiddle links
Submitted by
Shrinivas Shukla
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Registration Email Address
no description available
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
url and path match with or without http|https
this is the most perfect pattern I reach for url with query or anchor
Submitted by
Gehad Mohamed
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Single lone digits
Find single digits that are not part of an integer. For example, "27" should not match, but "27.1" will match the "1". "27.11" won't match.
Submitted by
Conan Dombroski
-
8 years ago
0
2 upvotes, 2 downvotes (50% like it) (You must be signed in to vote)
pcre
/[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}
no description available
Submitted by
anonymous
-
8 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
python:S117
Local variable and function parameter names should comply with a naming convention
Submitted by
anonymous
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Nickname
Nickname validation. Only: letters _ One line. Tested with RoR
Submitted by
Paramoshkin Andrew
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
add colon between hours and minutes to time (24h system)
This expression converts any 3- or 4 digit timevalue to a value with colon between hours and minutes. So 345 is converted to 3:45 and 1500 is converted to 15:00
Submitted by
Patrick Sinke
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Facebook url regex
no description available
Submitted by
Devs Devaras
-
8 years ago
-3
1 upvotes, 4 downvotes (20% like it) (You must be signed in to vote)
pcre
Facebook url regex
no description available
Submitted by
Devs Devaras
-
8 years ago
1
...
516
517
518
519
520
521
522
...
572
simplewords
Vote
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
Regular Expression
pcre
/
study
/
Open regex in editor
Description
Loading markdown...
Submitted by
glin
- 8 years ago