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 2,660 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Twelve-hour (with am and pm at the end) and twenty-four-hour time formats (hh:mm am pm)
PCRE2 (PHP >=7.3)
This regex finds the substrings of the formats: hh:mm (0 <= hh <= 23; 0 <= mm <= 59) or h:mm am|pm (0 <= 12; 0 <= mm <= 59)
Submitted by
anonymous
-
2 years ago
2022-02-19 08:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
JSON array of string
PCRE2 (PHP >=7.3)
\["(.*)"\]
Submitted by
anonymous
-
2 years ago
2022-02-21 06:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
URL
PCRE2 (PHP >=7.3)
URL
Submitted by
anonymous
-
2 years ago
2022-02-21 09:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
C floating-point constant
PCRE2 (PHP >=7.3)
The regular expression matches if the provided input is a regular expression matching the C floating-point constant or not.
Submitted by
anonymous
-
2 years ago
2022-02-21 10:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find text that looks like an Ingredient out of OCR
PCRE2 (PHP >=7.3)
Find text that looks like an Ingredient out of OCR. What it says on the tin.
Submitted by
anonymous
-
2 years ago
2022-02-21 13:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Look Ahead
PCRE2 (PHP >=7.3)
Look Ahead
Submitted by
anonymous
-
2 years ago
2022-02-21 16:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
light password
PCRE2 (PHP >=7.3)
at least 1 digit at least 1 lowercase at least 1 uppercase
Submitted by
phil-all
-
2 years ago
2022-02-22 08:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Light French names
PCRE2 (PHP >=7.3)
Name have to contain between 1 and 32 characters, as follow : at least 1 uppercase letter 0 or more lowercase letter...
Submitted by
phil-all
-
2 years ago
2022-02-22 09:38
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email Address Regular Expression
PCRE2 (PHP >=7.3)
Email Address Regular Expression
Submitted by
anonymous
-
2 years ago
2022-02-22 10:01
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
LLVM IR Global Variables
PCRE2 (PHP >=7.3)
Useful for LLVM backends that don't use LLVM's API!
Submitted by
anonymous
-
2 years ago
2022-02-22 19:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
oci1
PCRE2 (PHP >=7.3)
\nPrevious\n(.+\n+)+Time Remaining\n(\d\d:\d\d:\d\d)*
Submitted by
anonymous
-
2 years ago
2022-02-23 04:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
homework4
PCRE2 (PHP >=7.3)
homework 4
Submitted by
Eric Neuwirth
-
2 years ago
2022-02-23 06:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Server regex for getting directory and template name from url
PCRE2 (PHP >=7.3)
Later.
Submitted by
anonymous
-
2 years ago
2022-02-23 13:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match only capital letters with optional underscore in between
PCRE2 (PHP >=7.3)
HelloWorld -- NOT match HELLO_WORLD_ -- NOT match _HELLO_WORLD -- NOT match HELLO__WORLD -- match ]; -- NOT match RAGGA_DAFDASDA -- match...
Submitted by
anonymous
-
2 years ago
2022-02-24 08:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regex 1
PCRE2 (PHP >=7.3)
search api with category and subcategory
Submitted by
anonymous
-
2 years ago
2022-02-24 12:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
C-style block comment with "*/" escape
Golang
Match /* ... / with escape of quotation marks, e.g. / "*/" */. No look ahead needed.
Submitted by
Guyutongxue
-
2 years ago
2022-02-25 07:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Bhumi
PCRE2 (PHP >=7.3)
Submitted by
Ewallet
-
2 years ago
2022-02-25 10:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
hbase offline state regex
PCRE2 (PHP >=7.3)
CVP
Submitted by
Diego
-
2 years ago
2022-02-25 15:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Test MGNT
PCRE2 (PHP >=7.3)
just a test
Submitted by
dang
-
2 years ago
2022-02-28 13:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email
PCRE2 (PHP >=7.3)
Email Validator
Submitted by
anonymous
-
2 years ago
2022-02-28 20:48
1
...
70
71
72
73
74
75
76
...
133
HGVS coding RNA substitution
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
(?P<reference_sequence>
(
NM
|
NR
|
XM
|
XR
)
_
[
0
-
9
]
{4,12}
|
ENST
[
0
-
9
]
{1,11}
)
(
\.
(?P<version>
(
[
0
-
9
]
?
[
0
-
9
]
)
)
)?
(
:
(?P<prefix>
c
|
n
)
\.
(?P<start>
-
?
[
1
-
9
]
[
0
-
9
]
{0,7}
)
(?P<start_offset>
[
+-
]
[
1
-
9
]
[
0
-
9
]
{0,7}
)?
(?P<ref>
[
ACTG
]
)
>
(?P<alt>
[
ACTG
]
)
)?
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-07-12 18:13