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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 9,740 community submitted regex patterns...
0
Validate Password strength
PCRE (PHP <7.3)
(?=.*[A-Z]) # must contain 1 uppercase letter (?=.*[0-9]) # must contain 1 digit (?!.\n) # must not contain a newline character (?!.*\s) # must not contain any whitespace characters (?=.*[!$#+@%&]) # nust contain one of these symbols .{8,} # match a...
Submitted by
anonymous
-
9 years ago
0
Command line with escape
PCRE (PHP <7.3)
splits into command arguments: spaces split quotes keep spaced texts together \" escapes the quote
Submitted by
Skycoder42
-
9 years ago
0
positive/negative float/integer
PCRE (PHP <7.3)
matches all positive or negative float or integers
Submitted by
Codeloper
-
9 years ago
0
Facebook Page/Profile. No profile.php. No /groups/
PCRE (PHP <7.3)
Example: http://www.facebook.com/profile.php?id=123456789 http://www.facebook.com/someusername https://www.facebook.com/0x20.be http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2F2leep%2F109473355777935&width=300&connections=4&stream=false&heade...
Submitted by
aramosf
-
9 years ago
0
Regx5
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Nigerian Phone numbers
PCRE (PHP <7.3)
Regex for validating Nigerian phone numbers using all mobile prefixes in the country
Submitted by
Jubril Edu
-
9 years ago
0
letters and _- followed by _000999
PCRE (PHP <7.3)
no description available
Submitted by
Pizzirani Andrea - Italy
-
9 years ago
0
DateTime YYYYMMDDhhmmss (with leap year)
PCRE (PHP <7.3)
Validates DateTime of format YYYYMMDDhhmmss including Leap Year
Submitted by
Alex
-
9 years ago
0
NATO Stock Number (with or without NSC)
PCRE (PHP <7.3)
RegEx to validate a NATO Stock Number with or without the NATO Stock Code and with or without dashes
Submitted by
Matthew Perryman
-
9 years ago
0
url segments seperation
PCRE (PHP <7.3)
seperates url path and query
Submitted by
r.abdollahi
-
9 years ago
0
Capture subsubsub sections of constitution/bylays
PCRE (PHP <7.3)
Will only capture patterns matching 4 levels, found at the beginning of a line if /gm tag is used
Submitted by
bsmith
-
9 years ago
0
switch case statemen in C++
PCRE (PHP <7.3)
Match switch case statemen in C++
Submitted by
Денис Суховерхов
-
9 years ago
0
Facebook ID in Links or Widgets
PCRE (PHP <7.3)
Find the ID/name of facebook users/pages in widgets, or links.
Submitted by
anonymous
-
9 years ago
0
Float Representations
PCRE (PHP <7.3)
no description available
Submitted by
S-YOU
-
9 years ago
0
Credit Card Validator
PCRE (PHP <7.3)
For Visa, Mastercard, Discover, and AMEX
Submitted by
David Avellan
-
9 years ago
0
Remove Javascript Single Line Comment
PCRE (PHP <7.3)
Yancharuk's code/regex
Submitted by
Yancharuk
-
9 years ago
0
Yealink XML Phonebook entry
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Yealink XML Phone book entry
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Telephone number with space
PCRE (PHP <7.3)
no description available
Submitted by
rafanto
-
9 years ago
0
Indian Phone Numbers
PCRE (PHP <7.3)
Can match all indian 10 digit mobile numbers (with or without country code,braces or prefixed 0)
Submitted by
Harshvardhan Malpani
-
9 years ago
1
...
27
28
29
30
31
...
487
Match SysLog Struvtured Data Elements
0
Regular Expression
PCRE (PHP <7.3)
/
[
\[
]
(
.
*
?
)
\s
|
(?<=
^
|
\s
)
(
[^
=
\s
]
+
)
="
(
(?:
[^
\\
"
]
|
\\
.
)*
)
/
g
Open regex in editor
Description
Matches structured data elements multiple times Groups on SD-ID, keys, values
Submitted by
anonymous
-
9 years ago