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 3,800 community submitted regex patterns...
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
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
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
-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
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
check password
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
html img tag src
ECMAScript (JavaScript)
get src url from img tag in html
Submitted by
anonymous
-
9 years ago
1
img
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
-2
Name/Surname
ECMAScript (JavaScript)
Regex to constrain a text to have at least 2 strings. Compatible with 2nd-3rd-Nth names/surnames.
Submitted by
BigL
-
9 years ago
5
HTML img
ECMAScript (JavaScript)
Grabs all HTML tags
Submitted by
Pirate11
-
9 years ago
1
id
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
12
Username with "_" "-"
ECMAScript (JavaScript)
no description available
Submitted by
Gianvy
-
9 years ago
1
urls ending with
ECMAScript (JavaScript)
Urls ending with a specific domain
Submitted by
anonymous
-
9 years ago
-2
search all special characters
ECMAScript (JavaScript)
no description available
Submitted by
rlynjb
-
9 years ago
1
domain with .co.uk
ECMAScript (JavaScript)
Any domain written www.domain.co.uk
Submitted by
Byron Sargeant
-
9 years ago
1
Date testing with 2 digit year
ECMAScript (JavaScript)
Date javascript
Submitted by
petabyte
-
9 years ago
2
Date Testing
ECMAScript (JavaScript)
Javascript date regex
Submitted by
anonymous
-
9 years ago
1
...
163
164
165
166
167
...
190
VKontakte wall post link regex | ВКонакте проверка ссылки на запись регулярное выражение
2
Regular Expression
ECMAScript (JavaScript)
/
^
https
?
:
\/\/
(
m
\.
)?
vk
\.
com
\/
(
(
club
|
public
)
(
\d
+
)
|
[
_.a
-
zA
-
Z0
-
9
]
{5,32}
)?
(
\?
w=
)?
wall
(
-
\d
+
)
_
(
\d
+
)
\?
?
.
*
?
&
?
.
*
?
$
/
mg
Open regex in editor
Description
пипец капец боже мама я устал спаси госпади мою грушную дешу
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)