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...
0
Find an exact phrase only if it is within a certain number of chars.
PCRE (PHP <7.3)
Find an exact phrase (with each space and character in its own place) only if it is within the first 40 characters of the entire sentence. Useful to search non-standard phrases in log files.
Submitted by
RicardoSPimentel
-
9 years ago
0
url validator
PCRE (PHP <7.3)
no description available
Submitted by
Briareos
-
9 years ago
0
Open and Closing Markup tags on Single Line Markup
PCRE (PHP <7.3)
Quick Dirty Working
Submitted by
Timothy Smith
-
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 validation HTML5
ECMAScript (JavaScript)
This is validation that is used in html5 for validate the url. http://www.faqs.org/rfcs/rfc3987.html
Submitted by
Alex Matos
-
9 years ago
0
RFC Email address attempt
PCRE (PHP <7.3)
This looks to attempt to validate email addresses per the RFC. I don't know how accurate it is.
Submitted by
anonymous
-
9 years ago
0
Matches only word without specific HTML tag around it.
PCRE (PHP <7.3)
This will match a word that is not wrapper by the a specified HTML element (with a class).
Submitted by
Johnny Ji
-
9 years ago
0
Search href in <a> tag (internal links)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
<Trigger R="In a burst of feathers, a portal appears!" SD="DUCK PORTAL
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
date format slicing
PCRE (PHP <7.3)
lookahead
Submitted by
Kmna
-
9 years ago
0
Number
PCRE (PHP <7.3)
no description available
Submitted by
Jaromir Muller
-
9 years ago
0
Apache log regex
PCRE (PHP <7.3)
Regex pattern for Apache log
Submitted by
Sujan Thapa
-
9 years ago
0
date validation during input
PCRE (PHP <7.3)
this regex is able to validate a date (format dd.mm.yyyy) in every state of user typing. i use it to ensure that the user isn't able to type in an invalid date at all (except from a leap year check which is done afterwards) The regex also makes assumptions of 'missed' separators so 1234 is captured...
Submitted by
anonymous
-
9 years ago
0
Testing (delete)
PCRE (PHP <7.3)
Testing (delete)
Submitted by
Testing (delete)
-
9 years ago
0
/../ directory path cleaner
PCRE (PHP <7.3)
Replaces preceeding directory with / when ../ is used.
Submitted by
Mr.Deek
-
9 years ago
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
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
1
...
350
351
352
353
354
...
902
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
^
(
[
-
\w
]
|
[
-
\w
]
[
-.
\w
]
*
[
-
\w
]
)
@
(
[
-a
-
zA
-
Z0
-
9
]
+
\.
)+
[
-a
-
zA
-
Z0
-
9
]
{2,4}
$
/
Open regex in editor
Description
no description available
Submitted by
anonymous
-
9 years ago