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 17,420 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
All versions prior to 3.1.17
PCRE2 (PHP >=7.3)
Should show all semantic versions up to but not including 3.1.17
Submitted by
anonymous
-
8 months ago
2023-03-28 11:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Bespoke NGINX Log Parse
Python
Splits NGINX logs into named groups
Submitted by
Simon
-
8 months ago
2023-03-28 18:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Roman numerals check
Python
It is used to check if the roman number is valid
Submitted by
JNg
-
8 months ago
2023-03-29 06:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Gene ID from GTF Attributes
PCRE2 (PHP >=7.3)
As the title says, duh...
Submitted by
anonymous
-
8 months ago
2023-03-29 10:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Pattern to parse all XML node children
PCRE2 (PHP >=7.3)
Pattern to parse all XML node children
Submitted by
emadhusameldeen@gmail.com
-
8 months ago
2023-03-29 14:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Parse XML element parts
PCRE2 (PHP >=7.3)
Parse XML element parts
Submitted by
emadhusameldeen@gmail.com
-
8 months ago
2023-03-29 14:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Classification Matcher
ECMAScript (JavaScript)
Classification Matcher
Submitted by
anonymous
-
8 months ago
2023-03-29 15:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Reverse list of ASN.1 OIDs/Short Names/Long Names for X.509 certificates under OpenSSL
PCRE (PHP <7.3)
OIDs are just numbers in the format 1.2.3.4.5.6.7.8.9... Short names are alphanumeric, contiguous descriptions (no spaces, hyphens allowed) Long names can be basically everything (sometimes even UTF-8!) Sometimes, organisations providing the list of 'their' OIDs might reverse the order, for listing...
Submitted by
Gwyneth Llewelyn
-
8 months ago
2023-03-29 16:31
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Whatsapp timestamp remover
PCRE2 (PHP >=7.3)
Write regex to remove anything in between [12:58, 30/03/2023] Bharadwaj Giridhar from inboxpirates.net:
Submitted by
Chatgpt
-
8 months ago
2023-03-30 09:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Extract postcode and city
PCRE2 (PHP >=7.3)
Extract postcode and city when both are combined
Submitted by
anonymous
-
8 months ago
2023-03-30 09:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Name with propositions surnames
PCRE2 (PHP >=7.3)
An expression to get nouns by grouping prepositions with surnames
Submitted by
maurocsjr@gmail.com
-
8 months ago
2023-03-30 11:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match a shell-style parameter expansion introduced with a dollar sign and enclosed in culry braces.
PCRE2 (PHP >=7.3)
Matches a shell-style (bash, sh, zsh, etc.) parameter expansion reference.
Submitted by
anonymous
-
8 months ago
2023-03-30 18:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
test123
PCRE2 (PHP >=7.3)
test
Submitted by
anonymous
-
8 months ago
2023-03-30 23:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
weekly
PCRE2 (PHP >=7.3)
写周报把优路仕这边的工时天数去掉
Submitted by
anonymous
-
8 months ago
2023-03-31 01:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Reguljärt uttryck för att matcha G1
PCRE2 (PHP >=7.3)
Reguljärt uttryck för att matcha G1
Submitted by
Jonas Thor
-
8 months ago
2023-03-31 12:31
(Last modified 8 months ago)
2023-03-31 12:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find Secrets in Object
PCRE2 (PHP >=7.3)
Given a JSON.stringified object that may contain secrets, obfuscate them for logging. It will match parameters with "token," "key," and "secret" in strings and key/value pairs. Specifically looks for object values with : setters``, strings with = setters and Authorization headers. This regex will p...
Submitted by
chadkluck
-
8 months ago
2023-04-02 00:12
(Last modified 8 months ago)
2023-04-03 01:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
SMMRaja Mass Order
PCRE2 (PHP >=7.3)
Regex for easily mass-ordering from SMMRaja
Submitted by
anonymous
-
8 months ago
2023-04-02 15:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Phone number Malaysia RegEx
PCRE (PHP <7.3)
A regular expression of Malaysian phone number I made to be used on a project using flutter.
Submitted by
anonymous
-
8 months ago
2023-04-03 05:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Test regexp to redirect from mainpage dups
PCRE2 (PHP >=7.3)
Test regexp to redirect from mainpage dups
Submitted by
sinstranger
-
8 months ago
2023-04-03 08:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
import exp
PCRE2 (PHP >=7.3)
find file name on import/export js module
Submitted by
anonymous
-
8 months ago
2023-04-03 10:46
1
...
851
852
853
854
855
856
857
...
871
UFUNCTION parser
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
[
\s
]
*
(
[
\/
+
\s\w
@'
\,\.
()
\-\*\-\>\<\_\"
]
*
)?
[
\n
]
*
UFUNCTION
[
(
]
(
[
\w
<>
\s
\(\)\=\,\"\|
]
*
|
\n
]
*
)
[
\)
]
\n\s
(
virtual
)*
\s
*
(
static
)*
\s
*
(
\w
+
\&
?
\*
?
)
\s
(
\w
+
)
[
(
]
(
[
\w
<>
\s
,&
\*
]
*
|
\n
]
*
)
[
)
]
[
\s
]
*
(
[
const
]
*
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
6 months ago
2023-05-21 08:05