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 3,640 community submitted regex patterns...
1
Find JSON strings in a string
ECMAScript (JavaScript)
From StackOverflow
Submitted by
anonymous
-
8 years ago
(Last modified a year ago)
1
HTML5 or custom element tag
ECMAScript (JavaScript)
Matches a HTML5/custom element valid tag format .
Submitted by
Shadrack Ndacayisenga
-
8 years ago
1
RegExp that accepts English, Arabic and numbers
ECMAScript (JavaScript)
no description available
Submitted by
Momen Zakaria
-
7 years ago
1
form regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
Regex for parsing Slack Urls
ECMAScript (JavaScript)
This regex is a duplicate of another one, but with a minor modification to support subdomains with one or more "-" in it. ie:
Submitted by
Dylan
-
7 years ago
1
Statful Entities Name
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
Regex to replace width and height of mediatool image
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
decimal nr between 0-99999.99 with comma or dot with max. 2 decimal digits
ECMAScript (JavaScript)
decimal nr between 0-99999.99 with comma or dot with max. 2 decimal digits
Submitted by
anonymous
-
7 years ago
1
double number
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
Define and detect custom tag with specific prefix & suffix
ECMAScript (JavaScript)
Define and detect custom tag with specific prefix & suffix Define custom tag : `` . Regex is /\s]+?):>/gm . Prefix is `` . tag_name can not contain prefix, suffix, space, tab or newline character . tag_name can not be null ....
Submitted by
ShenTengTu
-
7 years ago
1
SharePoint file name validator - KB905231
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
dd-MM-yyyy validation
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
number
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
extract username from windows domain\user
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
argsert
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
Replace sinon stub configuration with ts-mockito equivalent
ECMAScript (JavaScript)
Replaces sinon.js stubs configuration with similar behaviour achievied using the ts-mockito library
Submitted by
anonymous
-
7 years ago
1
import匹配
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
Find Apostrophe via Regex and JavaScript
ECMAScript (JavaScript)
This is function matching apostrophe via regex and JavaScript. Also find broken apostrophe and match whole word.
Submitted by
Ivijan-Stefan Stipic <creativform@gmail.com>
-
7 years ago
1
Tablename = schema.table
ECMAScript (JavaScript)
Tablename composed by schema.table
Submitted by
Glauber Costa Vila Verde
-
7 years ago
1
Community Pageviews
ECMAScript (JavaScript)
no description available
Submitted by
Alfredo Hinojosa
-
7 years ago
1
...
142
143
144
145
146
...
182
Define and detect custom tag with specific prefix & suffix
1
Regular Expression
ECMAScript (JavaScript)
/
<:
(
[^
<:>
\s
]
+
?
)
:>
/
gm
Open regex in editor
Description
Define and detect custom tag with specific prefix & suffix
Define custom tag :
<:tag_name:>
.
Regex is
/<:([^<:>\s]+?):>/gm
.
Prefix is
<:
.
Suffix is
:>
.
tag_name
can not contain prefix, suffix, space, tab or newline character .
tag_name
can not be null .
You can get
tag_name
string use
$1
.
Prefix and suffix any unicode character , just use
\uXXXX
in regex.
Submitted by
ShenTengTu
-
7 years ago