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 9,220 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
MBI Regex
PCRE (PHP <7.3)
validates against the MBI format published by CDC
Submitted by
i410hlr
-
10 months ago
2023-02-07 13:28
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Parse arguments
PCRE (PHP <7.3)
Parse arguments
Submitted by
Ofir Yariv
-
10 months ago
2023-02-07 12:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
User-Agent
PCRE (PHP <7.3)
Parser
Submitted by
sn3kdev
-
10 months ago
2023-02-02 21:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Extract any http https and any url form
PCRE (PHP <7.3)
This will help you to extract any URL inside your text
Submitted by
Abdullah Alweheid
-
10 months ago
2023-01-31 22:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Parcing2
PCRE (PHP <7.3)
aa
Submitted by
anonymous
-
10 months ago
2023-01-31 20:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
trim phone number
PCRE (PHP <7.3)
trim phone number
Submitted by
anonymous
-
10 months ago
2023-01-31 12:39
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match HTML comments with nested comments
PCRE (PHP <7.3)
Even if this is not valid HTML, it's more to understand the concept of recursion in patterns. It was an answer to a Stack overflow question: https://stackoverflow.com/questions/75282404/remove-comments-from-some-generated-html-which-can-be-invalid-with-nested-commen The idea is to use PCRE's recur...
Submitted by
Patrick Janser
-
10 months ago
2023-01-30 13:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Search Trailing Commas
PCRE (PHP <7.3)
Regex used for finding trailing commas. Use for troubleshooting PHP 7.2 Codes
Submitted by
anonymous
-
10 months ago
2023-01-30 11:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
NMEA after timestamps
PCRE (PHP <7.3)
Picks up (most?) NMEA messages.
Submitted by
David Harrison
-
10 months ago
2023-01-21 23:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
https://github.com/AriesTriputranto9/datasets.git
PCRE (PHP <7.3)
actions-runner-win-x64-2.300.2.zipDownload We recommend configuring the runner under "\actions-runner". This will help avoid issues related to service identity folder permissions and long path restrictions on Windows. Create a folder under the drive root $ mkdir actions-runner; cd actions-runner# D...
Submitted by
AriesTriputranto
-
a year ago
2023-01-16 11:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Extracting subtitle entries
PCRE (PHP <7.3)
Extract subtitle entries out of SRT files.
Submitted by
anonymous
-
a year ago
2023-01-15 22:21
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
decamelize
PCRE (PHP <7.3)
pascal case to snake case
Submitted by
anonymous
-
a year ago
2023-01-04 03:37
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Secret HTML Comment
PCRE (PHP <7.3)
This REGEX can be used for, e.g., PHP scripts to filter out comments that are only important for development.
Submitted by
anonymous
-
a year ago
2022-12-19 17:08
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
COINGBIT
PCRE (PHP <7.3)
0x18a0C976040e8FD9E529b8B363150b201606396e COINGBIT USD $70000000.0 Paypal gislainelophes@gmail.com CPF 04805338652
Submitted by
COINGBIT
-
a year ago
2022-12-19 14:17
(Last modified a year ago)
2023-01-06 17:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Filtro Página web
PCRE (PHP <7.3)
Filtro pagina web
Submitted by
anonymous
-
a year ago
2022-12-17 00:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex to match all instances not inside quotes
PCRE (PHP <7.3)
See https://stackoverflow.com/questions/6462578/regex-to-match-all-instances-not-inside-quotes
Submitted by
anonymous
-
a year ago
2022-12-16 16:01
(Last modified a year ago)
2022-12-16 17:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Whatsapp group message id
PCRE (PHP <7.3)
Whatsapp group message id
Submitted by
anonymous
-
a year ago
2022-12-16 05:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
1-100
PCRE (PHP <7.3)
1-100
Submitted by
anonymous
-
a year ago
2022-12-12 09:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Negative search
PCRE (PHP <7.3)
Seach pattern that doesn't match
Submitted by
Gael Langlais
-
a year ago
2022-12-05 20:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Importing Confluence Application Logs to Amazon Athena
PCRE (PHP <7.3)
Though in Athena you would need two backslash instead of one as listed above in Regex. expression in Athena. "input.regex" = '^(.?) (.?) (.?) \\[(.?)\\] \\[(.*?)\\] (.+)$'
Submitted by
Chirag Parikh
-
a year ago
2022-11-30 13:26
1
2
3
4
5
6
...
461
Semantic Version (semver)
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
^
(?<major>
0
|
[
1
-
9
]
\d
*
)
\.
(?<minor>
0
|
[
1
-
9
]
\d
*
)
\.
(?<patch>
0
|
[
1
-
9
]
\d
*
)
(?:
-
(?<prerelease>
(?:
0
|
[
1
-
9
]
\d
*
|
\d
*
[
a
-
zA
-
Z-
]
[
0
-
9a
-
zA
-
Z-
]
*
)
(?:
\.
(?:
0
|
[
1
-
9
]
\d
*
|
\d
*
[
a
-
zA
-
Z-
]
[
0
-
9a
-
zA
-
Z-
]
*
)
)*
)
)?
(?:
\+
(?<buildmetadata>
[
0
-
9a
-
zA
-
Z-
]
+
(?:
\.
[
0
-
9a
-
zA
-
Z-
]
+
)*
)
)?
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
semver.org,Jeff Jacobson
-
a year ago
2022-11-23 17:48