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 5,800 community submitted regex patterns...
-2
Date Validation
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
UK postcodes
Python
Flexible regex to detect full or partial UK postcodes.
Submitted by
Victor Munoz
-
9 years ago
1
Domain
ECMAScript (JavaScript)
Will return domain portion of a url: Example: http://www.jkrowlings.com/books Returns: www.jkrowlings.com
Submitted by
Scott Burrows
-
9 years ago
1
Everthing in an element
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
14
Phone Number
ECMAScript (JavaScript)
Allows phone numbers with optional country code, optional special characters and whitespace
Submitted by
Tlmader
-
9 years ago
3
URL Regex (protocol strict)
ECMAScript (JavaScript)
Includes resource strings, taken from here: https://gist.github.com/dperini/729294
Submitted by
Diego Perini
-
9 years ago
1
postgresql
Python
no description available
Submitted by
anonymous
-
9 years ago
2
postgesql
Python
no description available
Submitted by
anonymous
-
9 years ago
1
Help
Python
no description available
Submitted by
anonymous
-
9 years ago
0
barcode or barcode list
Python
no description available
Submitted by
anonymous
-
9 years ago
0
ASP.NET Web Forms dates in JSON
ECMAScript (JavaScript)
Look for date objects in JSON returned from ASP.NET Web Forms.
Submitted by
anonymous
-
9 years ago
1
date regex
ECMAScript (JavaScript)
match dd-mm-yyyy
Submitted by
anonymous
-
9 years ago
0
SSN
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2
SSN
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2
Match 'words' with internal punctuation retained
Python
Matches words without external punctuation but with internal punctuation.
Submitted by
anonymous
-
9 years ago
1
Match initials
Python
Match initials of a person name
Submitted by
anonymous
-
9 years ago
3
Match a URL from a text message
ECMAScript (JavaScript)
I use this to match the first url present in a text message.
Submitted by
anonymous
-
9 years ago
1
Regex for matching assignments
ECMAScript (JavaScript)
Match the java assignments and get the assigned value
Submitted by
mohamedrias
-
9 years ago
1
jsDoc Parameter Splitter
ECMAScript (JavaScript)
Finds parameters in jsDocs (parameters are sections of information starting with @ and only appear in a block after free floating text
Submitted by
anonymous
-
9 years ago
1
regex to get N words from a line
ECMAScript (JavaScript)
usefull if you want to return (N) words instead of (N) chars
Submitted by
Pavel Dominguez
-
9 years ago
1
...
261
262
263
264
265
...
290
regex to get N words from a line
1
Regular Expression
ECMAScript (JavaScript)
/
^
(
(?:
\w
+
\s
?
){1,12}
)
.
*
/
gm
Open regex in editor
Description
usefull if you want to return (N) words instead of (N) chars
Submitted by
Pavel Dominguez
-
9 years ago