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,020 community submitted regex patterns...
1
Smoke Detector Regex
Python
Parses Smokey messages
Submitted by
Eyeballcode
-
9 years ago
1
Capture if pattern NOT found
PCRE (PHP <7.3)
Capture the input if the pattern is NOT found
Submitted by
Byron Jones
-
9 years ago
1
replace comma's between quoted text in csv
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Change Table names
PCRE (PHP <7.3)
no description available
Submitted by
Andrea
-
9 years ago
1
Words with only one spacing
PCRE (PHP <7.3)
Names with only one spacing allowed in between words.
Submitted by
Pavan Kataria
-
9 years ago
1
123
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
^([a-zA-Z1-9]{1})([a-zA-Z0-9])+:$
ECMAScript (JavaScript)
hexa deciamal number with ending with ( :) a special character
Submitted by
anusha
-
9 years ago
1
Validate multiple Email-addresses separated by semicolon
PCRE (PHP <7.3)
Validate multiple Email-addresses separated by semicolon. No check on allowed domains, just a plain and simple check on the correct structure
Submitted by
maxthelup
-
9 years ago
1
IBAN (with spaces)
PCRE (PHP <7.3)
This matches EU IBAN codes considering spaces here and there
Submitted by
ZioAldo
-
9 years ago
(Last modified a year ago)
1
Date time AM/PM validation
PCRE (PHP <7.3)
no description available
Submitted by
vladimir
-
9 years ago
1
BNF for specific URL schemes (httpurl) from rfc1738
Python
This regex represents the httpurl in BNF from rfc1738 (at topic 5). Reference:https://www.ietf.org/rfc/rfc1738.txt
Submitted by
Migueh
-
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
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
[\d]*
PCRE (PHP <7.3)
kostix@mail.ru
Submitted by
anonymous
-
9 years ago
1
Look Forward
Python
Between two strings.
Submitted by
Online Cop
-
9 years ago
1
US Phone Number Format Check
PCRE (PHP <7.3)
All Valid: 3334444 222333444 12223334444 333-4444 222-333-4444...
Submitted by
anonymous
-
9 years ago
1
Read PHPDoc as (key => value) like Wordpress plugins
PCRE (PHP <7.3)
[a-zA-Z0-9]+)\\s{1,}(?P.*)/im"; $str = "/\n@author Marian Gabriel\n@route /page/contact\n@name Contact Plugin\n@version 0.1beta\n@company VMG\n@type Page\n/\n\n"; preg_match_all($re, $str, $matches); function getValue($attr, $matches) {...
Submitted by
Marian Gabriel
-
9 years ago
1
5
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
7
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
10
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
...
60
61
62
63
64
...
901
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
Audit
(?P<audit_outcome>
(
Success
|
Failure
)
)
,
(?P<log_date>
.
*
)
,Microsoft-Windows-Eventlog,
(?P<event_id>
\d
+
)
,
(?P<category>
.
*
)
,
(?P<event_message>
.
*
)
/
g
Open regex in editor
Description
no description available
Submitted by
anonymous
-
7 years ago