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 5,980 community submitted regex patterns...
0
手机号匹配
ECMAScript (JavaScript)
一般用于验证 必然是宽松的(1\d{10}) 用严格校验的都是没用脑子思考过的。 1.如果用户要故意输错,怎么都拦不住。 宽松校验已经能解决相当一部分的误输入(最常见的问题是少输了一位),相比之下,这个「严格正则」并没有明显的优势:假如用户只输错了一位数,用「严格正则」能校验出来的概率也就不到 20%,超过 80% 的错误还是校验不出来。所以这个校验的意义很大吗? 需要输入手机号的业务往往会配合短信校验码使用,校验码能完全解决用户输错的问题。...
Submitted by
anonymous
-
4 years ago
0
只能输入 大于1的数值
ECMAScript (JavaScript)
一般用于验证 价格
Submitted by
anonymous
-
4 years ago
0
str100
ECMAScript (JavaScript)
验证字符串的长度 一般用于input textarea输入框
Submitted by
anonymous
-
4 years ago
0
RegEx 01
ECMAScript (JavaScript)
Desafio proposto pelo Brunno: Apenas palavras compostas de 4 (quatro) letras - 11/03/2020.
Submitted by
Paula Picolott (ppicolott)
-
4 years ago
0
Test S2T indexing
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
0
Fecha de Despacho
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
0
Trailing slash URL with query parameters
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
0
SemVer - Versioning RegEx - Alternative (JavaScript)
ECMAScript (JavaScript)
Source: https://semver.org Alternative: https://simversion.github.io
Submitted by
anonymous
-
4 years ago
0
Bank account number
ECMAScript (JavaScript)
3 to 12 digits in length only
Submitted by
anonymous
-
4 years ago
0
Ts to jsdoc
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
0
Safaricom Regex ~Feb 2020
ECMAScript (JavaScript)
As of Feb 2020 Sources: https://ca.go.ke/wp-content/uploads/2020/01/Telecommunication-Numbering-Plan-for-Kenya-Feb-2020-compressed.pdf
Submitted by
anonymous
-
4 years ago
0
autolink 와 src에 띄어쓰기있는 링크 충돌
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
0
Email
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
1
Catch react-like components using JS
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
0
Regular expression for gmail's email
ECMAScript (JavaScript)
This is my test of an regular expression. It matches not all but maximum gmail account's syntax.
Submitted by
anonymous
-
4 years ago
0
Domain and locale extraction regex
ECMAScript (JavaScript)
Regex that captures both domain and locale for a given url. Eg: https://sumup.com/en-en/welcome matches https://sumup.com/en-en
Submitted by
anonymous
-
4 years ago
0
查找特定字符串附近的数字
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
0
Subst caminho de URL, deixa arquivo 3
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
0
Simple tag-split
ECMAScript (JavaScript)
I use this regex for color-formatting messages
Submitted by
anonymous
-
4 years ago
0
Name
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
1
...
186
187
188
189
190
...
299
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