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 5,480 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
select report
PCRE2 (PHP >=7.3)
select report
Submitted by
H.Nasirii
-
12 days ago
2023-09-12 19:12
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Find software version in single line text entry
PCRE2 (PHP >=7.3)
This will look for a software version within a single line text entry.
Submitted by
Bill Alexander
-
13 days ago
2023-09-12 13:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Find all words between #text#
PCRE2 (PHP >=7.3)
Finds all occurence in a plain text / html text where a text is between 2 hashtags : #text#
Submitted by
Kervan Mazuy
-
14 days ago
2023-09-11 06:28
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Hexadecimal Colour Code Finder
PCRE2 (PHP >=7.3)
This regex will find any hexadecimal colour code, anywhere in your string Support for: mini 3 letter codes normal 6 letter codes back to back codes
Submitted by
anonymous
-
14 days ago
2023-09-10 16:30
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
SGML & XML
PCRE2 (PHP >=7.3)
Match SGML and XML elements.
Submitted by
anonymous
-
15 days ago
2023-09-10 00:51
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match ONLY valid URLs!
PCRE2 (PHP >=7.3)
Match all valid URLs Examples: Valid URLs: https://www.example.com/ http://subdomain.example.net/ https://www.subdomain.example.com.uk/params...
Submitted by
Henriii102
-
16 days ago
2023-09-09 14:36
(Last modified 2 days ago)
2023-09-23 03:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL (URI) - TOTAL Breakdown: Named Groups (Supporting Literal, Relative, Dynamic URLs, with/without Filename/Ext, Query Parameters and/or Anchor Tags)
ECMAScript (JavaScript)
Need to FULLY Break Out EVERY Component of a URL? Like, as in "every constituent element individually accessible in its own named capture group?" Need it to be pre-optimized and fully ECMA-compliant? Want to see exhaustive unit tests proving these claims (144 are included; all 144 execute in 6.5ms. ...
Submitted by
@JJ for Nerdy Deeds, LLC
-
16 days ago
2023-09-08 16:51
(Last modified 16 days ago)
2023-09-08 16:54
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Patron de Blogs
PCRE2 (PHP >=7.3)
Patron para la busqueda de URLS En sitemaps de blogs
Submitted by
anonymous
-
17 days ago
2023-09-08 12:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
One letter in row
PCRE2 (PHP >=7.3)
([a-z])(?!.*\1)
Submitted by
anonymous
-
17 days ago
2023-09-07 19:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match all Tailwind CSS classes prefixed with dark:
PCRE2 (PHP >=7.3)
A simple expression for removing Tailwind CSS classes that are prefixed with dark: from your HTML. Can be easily changed to remove any other classes with a specific prefix. I made this so I could easily remove dark mode from Tailwind CSS components I find online.
Submitted by
hexrw
-
18 days ago
2023-09-06 21:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
git url dissecting
PCRE2 (PHP >=7.3)
the various parts of a git url are dissected and made available in the respective capture groups
Submitted by
anonymous
-
18 days ago
2023-09-06 16:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Capturing elements inside square brackets
PCRE2 (PHP >=7.3)
Using regex, you can use a pattern that takes three comma-separated elements and then extracts the third element from inside the brackets.
Submitted by
anonymous
-
19 days ago
2023-09-06 14:06
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
DSL tags missing closing pair tags
PCRE2 (PHP >=7.3)
Checking whether all [b] tag pairs are present in *.dsl text
Submitted by
anonymous
-
20 days ago
2023-09-04 23:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Full name split
PCRE2 (PHP >=7.3)
It allows to divide the full name into its three parts
Submitted by
anonymous
-
21 days ago
2023-09-04 14:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
remove Markdown language Wrapper
PCRE2 (PHP >=7.3)
to remove language wrapper in markdown files
Submitted by
Mohamed Elserety
-
21 days ago
2023-09-04 14:10
(Last modified 21 days ago)
2023-09-04 14:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Validate local host or local network
PCRE2 (PHP >=7.3)
Validate localhost:port, 127.0.:port, 192.168.:port
Submitted by
anonymous
-
21 days ago
2023-09-04 04:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
regex chuoi tieng viet tuong doi
PCRE2 (PHP >=7.3)
aa
Submitted by
anonymous
-
21 days ago
2023-09-03 17:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
line end marker
PCRE2 (PHP >=7.3)
marks ends of lines with ; (if you wrote something as an example in python and switched to php and you are too lazy to write ; after each line) doesnt marks it where its not supposed to mark (after { ( [ = , : and ; as an example
Submitted by
anonymous
-
22 days ago
2023-09-03 09:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Nginx Ingress
PCRE2 (PHP >=7.3)
Nginx-Ingress Pattern
Submitted by
GauravKT
-
22 days ago
2023-09-02 16:38
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
No double same-letter
PCRE2 (PHP >=7.3)
Hello!!!!!.... -> Helo!.
Submitted by
Deniz-seckin55
-
24 days ago
2023-09-01 12:13
1
2
3
4
5
...
274
jvavo-regExp-links
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(?i)
(
https
?
:
\/\/
)?
(
www
\.
)?
facebook
\.
com
\/
group
(
s
)?
(
\/
?
\/
\d
+
)?
(
\/
.
*
)?
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
4 months ago
2023-06-04 20:03