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
Most upvotes
Most downvotes
Highest Score
Lowest Score
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 18,020 community submitted regex patterns...
0
php comment
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
Parse drupal version info from filename
PCRE (PHP <7.3)
no description available
Submitted by
Jason Smith
-
11 years ago
11
Date(Including Leap Year) YYYY-MM-DD hh:mm:ss
PCRE (PHP <7.3)
Validates DateTime of format YYYY-MM-DD hh:mm:ss including Leap Year
Submitted by
Madhan
-
11 years ago
-2
Match v4 IP address
PCRE (PHP <7.3)
no description available
Submitted by
Budiony Damyanov
-
11 years ago
4
Hungarian ANDOK system id
PCRE (PHP <7.3)
no description available
Submitted by
Tana
-
11 years ago
6
ID003 device info
PCRE (PHP <7.3)
no description available
Submitted by
sasjaq
-
11 years ago
-2
[A-Z]+[a-z]{1,2}[0-9]*
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
3
Outside Quotes
ECMAScript (JavaScript)
match any string outside of single or double quotes
Submitted by
anonymous
-
11 years ago
2
Find 'console.' but not 'console.log'
ECMAScript (JavaScript)
no description available
Submitted by
Jay Johnson
-
11 years ago
1
Find UnCommented Console. Code
ECMAScript (JavaScript)
no description available
Submitted by
Jay Johnson
-
11 years ago
-2
A masz!
PCRE (PHP <7.3)
no description available
Submitted by
Ja
-
11 years ago
-2
failed attempt
PCRE (PHP <7.3)
no description available
Submitted by
DynV
-
11 years ago
1
Test Listing Parser
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
-2
Ukazka
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
Strip ANSI escape characters
Python
no description available
Submitted by
anonymous
-
11 years ago
-2
Remove empty HTML tags
PCRE (PHP <7.3)
Removes empty HTML tags. Was needed for old input clean-up and to keep a HTML parses from crashing. Looking for improvement on bottom test.
Submitted by
R. Sartorius
-
11 years ago
3
Task 2, part 1
PCRE (PHP <7.3)
Finds all source numbers in square brackets
Submitted by
Kovalev Evgeny
-
11 years ago
4
Task 1
PCRE (PHP <7.3)
Finds a happy smile, except sad one
Submitted by
Kovalev Evgeny
-
11 years ago
1
Task 1
PCRE (PHP <7.3)
no description available
Submitted by
Kovalev Evgeny
-
11 years ago
1
srt
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
...
892
893
894
895
896
...
901
Community Library Entry
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