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
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 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 5,680 community submitted regex patterns...
1
DDDD, dd MMMM
ECMAScript (JavaScript)
Friday, 23 October
Submitted by
nehakadam
-
9 years ago
0
space
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
match invalid postcode
Python
match as long as not 5digit code
Submitted by
anonymous
-
9 years ago
1
Parse pgbouncer log lines from syslog
Python
Regex to read pgbouncer's log lines when it's logging to syslog, and break it into useful groups.
Submitted by
Josh Berkus
-
9 years ago
0
Base64 Test
ECMAScript (JavaScript)
Tests a string to see if it fits the Base64 format.
Submitted by
anonymous
-
9 years ago
1
Find C# Namespace
ECMAScript (JavaScript)
Simple regex to find the Namespace line in a C# class.
Submitted by
Erik Bartlow
-
9 years ago
1
Line VTY
Python
Used to search line vty for exec
Submitted by
Hozenya
-
9 years ago
1
Trim Whitespace before/after String
ECMAScript (JavaScript)
Remove whitespace before and after the string. Use g for trimming before and after Use m for trimming each line of a multiline string individually. Code: ' test '.replace( /(^\s+|\s+$)/gm, '' );
Submitted by
KevinV
-
9 years ago
1
f
Python
f
Submitted by
f
-
9 years ago
6
Simple Number
ECMAScript (JavaScript)
Verifies Number is a negative/positive number. Number may be a decimal, but if it is, it requires at least one number before and after the decimal place. Decimal numbers may also be negative or positive. Only 1 decimal place is allowed.
Submitted by
David P Smith
-
9 years ago
1
Nuclear Exploit Kit
Python
Nuclear Exploit Kit Requested file
Submitted by
anonymous
-
9 years ago
1
Parcel ID (Michigan)
Python
REGEX validator for Parcel IDs. Works for Michigan but may for other states if their parcel IDs have form "00-00-00-00-000-000".
Submitted by
Lewis
-
9 years ago
1
localhost ip's with port
Python
Matches localhost ip range with optional port capture: 127.X.X.X or 127.X.X.X:PORT ToDo: check valid ip address.
Submitted by
Rodrigo M. A.
-
9 years ago
-1
localhost match range ip with port number
Python
Matches all ips that points to localhost like, optionally capturing port number: 127.X.X.X and 127.X.X.X:
Submitted by
Rodrigo M. A.
-
9 years ago
-2
Roman numbers
ECMAScript (JavaScript)
This regex matches roman numbers from 1 (I) to 3999 (MMMCMXCIX)
Submitted by
Nicolò Ribaudo
-
9 years ago
0
Date Validation
ECMAScript (JavaScript)
This pattern validates all the possible dates for all months in YYYY-MM-DD format. Due to limitations of regex it can not validate the dates of february for leap year. It will allow the date 29 for leap year too. Make sure to validate that yourself.
Submitted by
Ashutosh Agrawal
-
9 years ago
2
yowsup-cli message parsing
Python
This pattern parses the yowsup-cli message output to recover (otherwise lost) messages. Current yowsup version: v2.4
Submitted by
kerel
-
9 years ago
-2
Valid Email
ECMAScript (JavaScript)
Use this Regex for server-side validation also with some slight modifications like so for .NET -- @\w+([-+.']\w+)@\w+([-.]\w+)\.[a-zA-Z0-9]{2,6}(-.{2,6})*;
Submitted by
Fred Scales
-
9 years ago
1
Valid Email
ECMAScript (JavaScript)
This is the javascript equivalent that .NET uses in their server-side validators.
Submitted by
anonymous
-
9 years ago
2
Markup link
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
...
244
245
246
247
248
...
284
cross platform file extension in node/io.js
1
Regular Expression
ECMAScript (JavaScript)
/
\.
[^
/
\\
.
]
+
$
/
Open regex in editor
Description
This regex will match the file extension on any platform in node.js or io.js.
Submitted by
Russell Dempsey
-
9 years ago