Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,040 community submitted regex patterns...
-2
Date Validation
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
Find all Internet Explorer 11.x pkgmgr packages
PCRE (PHP <7.3)
This regex can be used to find all of the packages (.mum) files in the WINDIR%\servicing\Packages directory. I used it to remove the update packages from Winodws 7 pkgmgr /up:"filename" /norestart /quiet
Submitted by
Pressanykey
-
9 years ago
1
Get text within pipe placeholders
PCRE (PHP <7.3)
Will return all matches of text between pipe placeholders, e.g. "This text has |two| placeholders |inside| of it" will return matches for two and inside.
Submitted by
Eddie Y
-
9 years ago
0
UK postcodes
Python
Flexible regex to detect full or partial UK postcodes.
Submitted by
Victor Munoz
-
9 years ago
1
URL detector
PCRE (PHP <7.3)
no description available
Submitted by
pawel
-
9 years ago
2
Full URI Mapping
PCRE (PHP <7.3)
Everything, including proto, user:pass, host, query params and anchors
Submitted by
baadf00d
-
9 years ago
1
Domain
ECMAScript (JavaScript)
Will return domain portion of a url: Example: http://www.jkrowlings.com/books Returns: www.jkrowlings.com
Submitted by
Scott Burrows
-
9 years ago
1
Everthing in an element
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
14
Phone Number
ECMAScript (JavaScript)
Allows phone numbers with optional country code, optional special characters and whitespace
Submitted by
Tlmader
-
9 years ago
0
Select everything outside of table tags
PCRE (PHP <7.3)
no description available
Submitted by
ReijMan
-
9 years ago
1
ms internet explorer vesion <= 8
PCRE (PHP <7.3)
Check version of internet explorer - if is it usable for html5 support etc.
Submitted by
tomish.net
-
9 years ago
3
URL Regex (protocol strict)
ECMAScript (JavaScript)
Includes resource strings, taken from here: https://gist.github.com/dperini/729294
Submitted by
Diego Perini
-
9 years ago
1
Apache/Nginx Logs parsing
PCRE (PHP <7.3)
Log Format - combined + cookie at the end. Pattern Desc - combined for all groups.
Submitted by
Samuil Dichev
-
9 years ago
0
Apache/Nginx log parser with Cookie
PCRE (PHP <7.3)
Format - cookie_combined Pattern - combined for all groups
Submitted by
Samuil Dichev
-
9 years ago
1
spamk rule
PCRE (PHP <7.3)
recognize more than 1000 mails per today with this regex
Submitted by
alex kippar
-
9 years ago
1
postgresql
Python
no description available
Submitted by
anonymous
-
9 years ago
2
postgesql
Python
no description available
Submitted by
anonymous
-
9 years ago
1
PTK:DateOfIssuance
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
find a valid SO file
PCRE (PHP <7.3)
This regex allow to validate a .so file (with an additional version)
Submitted by
anonymous
-
9 years ago
0
find non-protocolized img src
PCRE (PHP <7.3)
Useful to expand links without a protocol header with a base url src="/bla/blubb" --> src="http:/foo.com/bla/blubb"
Submitted by
fjakop
-
9 years ago
1
...
818
819
820
821
822
...
902
Community Library Entry
1
Regular Expression
PCRE2 (PHP >=7.3)
/
\/\*
[
.
\t\r\f\v
\S
]
*
\*\/
|
^
[
\t\r\f\v
]
*
\/\/
.
*
/
gm
Open regex in editor
Description
Finds comments in Kotlin but not inline comments
Submitted by
anonymous
-
6 months ago