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
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Function Parameter Switcher
Switches the order of two functions in a parameter.
Submitted by
anonymous
-
8 years ago
-1
1 upvotes, 2 downvotes (33% like it) (You must be signed in to vote)
pcre
website
If needed to test entered website
Submitted by
Max Shishkov
-
8 years ago
1
2 upvotes, 1 downvotes (67% like it) (You must be signed in to vote)
pcre
ipv4 and ipv6
no description available
Submitted by
shri
-
8 years ago
4
4 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Epic EHR Sticker QR code patient information
Text output produced by reading the QR code present on patient stickers created by Epic (R) medical record software
Submitted by
MeWa
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
ScoutPro data
no description available
Submitted by
anonymous
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Parse CSV fields
Parse an input string into fields separated by comma.
Submitted by
anonymous
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Hex Input List
Match one or two digit hex values separated by a comma.
Submitted by
anonymous
-
8 years ago
5
5 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Quartz Cron Validation
http://stackoverflow.com/questions/2362985/verifying-a-cron-expression-is-valid-in-java
Submitted by
anonymous
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Lookahead phone test with formatting
Let's say a phone number is valid in case it has 11 digits only (13 in case of using 00 instead of +). Separators could be anywhere. Take the valid numbers and bring to common format. Original idea was deleting all non-digits but using look-ahead made impossible to use + for remove non-digits, it ne...
Submitted by
zolo
-
8 years ago
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
1
...
515
516
517
518
519
520
521
...
571
JSON validator
Vote
2
3 upvotes, 1 downvotes (75% like it) (You must be signed in to vote)
Regular Expression
pcre
/
(?<o>
{
(
(?<s>
\"
(
[^
\0-\x1F
\"\\
]
|
\\
[
\"\\\/
bfnrt
]
|
\\
u
[
0
-
9a
-
fA
-
F
]
{4}
)*
\"
)
:
(?<v>
\g<s>
|
(?<n>
-
?
(
0
|
[
1
-
9
]
\d
*
)
(
.\d
+
)?
(
[
eE
]
[
+-
]
?
\d
+
)?)
|
\g<o>
|
\g<a>
|
true
|
false
|
null
)
)?
\s
*
(
(?<c>
,
\s
*
)
\g<s>
(?<d>
:
\s
*
)
\g<v>
)*
}
)
|
(?<a>
\[
\g<v>
?
(
\g<c>\g<v>
)*
\]
)
/
Open regex in editor
Description
Loading markdown...
Submitted by
luis140219 on GitHub and Sourceforge
- 8 years ago