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 12,660 community submitted regex patterns...
1
Remove Empty Lines
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Parse C++ printf format string
PCRE (PHP <7.3)
Get standard parts of C++ format modifiers
Submitted by
Zak
-
8 years ago
1
Single percent symbols, that NOT corresponds to C++ printf format
PCRE (PHP <7.3)
no description available
Submitted by
Zak
-
8 years ago
1
Paswword with min a upper case, a lower case, a digit without accent
ECMAScript (JavaScript)
Paswword with min a upper case, a lower case, a digit without accent and special case (.@-_)
Submitted by
JY
-
8 years ago
1
comma separated emails #1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
DNI - NIE
PCRE (PHP <7.3)
Detecta si el formato introducido es un DNI o NIE correcto. No comprueba si la letra es correcta, solo si el formato es correcto.
Submitted by
Krato
-
8 years ago
1
Only Multilingual and spaces
PCRE (PHP <7.3)
no description available
Submitted by
Krato
-
8 years ago
1
nginx_stuff_adamols
PCRE (PHP <7.3)
no description available
Submitted by
talmobi
-
8 years ago
1
burberry 1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Ad Size List
PCRE (PHP <7.3)
separated by commas and/or spaces
Submitted by
anonymous
-
8 years ago
1
nginx jenkins routing fix
PCRE (PHP <7.3)
jenkins url rewrites form paths ending without a '/' character removed the port part of the url - this fixed that. also paths with an uppercase letter are required to NOT have '/' at the end so those cases are ignored
Submitted by
talmobi
-
8 years ago
1
Match exact only in group
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
perfect match
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
CSS Selector
PCRE (PHP <7.3)
no description available
Submitted by
Hans Otto Wirtz
-
8 years ago
1
.NET Json DateTime
PCRE (PHP <7.3)
.NET Json serializer DateTime pattern.
Submitted by
Joma Espinoza Bone
-
8 years ago
1
Swedish PIN
PCRE (PHP <7.3)
A simple regex for matching the format of swedish personal identifier numbers. They can be in the format of: yymmdd-nnnn yymmdd+nnnn yyyymmdd-nnnn...
Submitted by
anonymous
-
8 years ago
1
Código Postal
PCRE (PHP <7.3)
Código Postal Español en PHP
Submitted by
Krato
-
8 years ago
1
Teléfono Español - Spanish Phone
PCRE (PHP <7.3)
Con posibilidad de poner el código de país antes. Valida números de 9 cifras que empiecen con 9,6 o 7.
Submitted by
Krato
-
8 years ago
1
Full human names
ECMAScript (JavaScript)
Case sensitive full human names including Latin-1 Supplement characters.
Submitted by
Almino Melo
-
8 years ago
1
V2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
...
170
171
172
173
174
...
633
匹配中文数字,用于逆向文本标准化
0
Regular Expression
Python
r"
(
[
a
-
z
]
\s
*
)?
(
(
[
零幺一二两三四五六七八九十百千万点比
]
|
[
零一二三四五六七八九十
]
[
]
|
(?<=
[
一二两三四五六七八九十
]
)
[
年月日号
]
|
(
分之
)
)+
(
(?<=
[
一二两三四五六七八九十
]
)
[
a
-
zA
-
Z年月日号个只分万亿秒
]
|
(?<=
[
一二两三四五六七八九十
]
\s
)
[
a
-
zA
-
Z
]
)?
(?(1)
|
(?(5)
|
(
[
零幺一二两三四五六七八九十百千万亿点比
]
|
(
分之
)
)
)+
)
)
"
xig
Open regex in editor
Description
大部分应当匹配的数字都匹配上了。
第2个捕获组,即是内容(可能加的有单位,需要手动去除)
Submitted by
HaujetZhao
-
a year ago