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 5,020 community submitted regex patterns...
0
dc/i
PCRE2 (PHP >=7.3)
特定の文字移行続く
Submitted by
anonymous
-
2 years ago
0
Apache user agent regex
PCRE2 (PHP >=7.3)
This regex groups data for easy parsing based on typical Apache user agent logs. The regex will never fail; it matches anything, even if user agent is atypical. Whitespaces on matches will need to be cleaned programmatically. Submitted by: Dennis Faas https://www.infopackets.com
Submitted by
anonymous
-
2 years ago
0
Floating point and scientific notation regex
PCRE2 (PHP >=7.3)
Matches real/FP numbers which may optionally also include a scientific notation/exponent part.
Submitted by
Kevin Winner
-
2 years ago
0
DADOS
PCRE2 (PHP >=7.3)
CAPTURAR
Submitted by
anonymous
-
2 years ago
0
title
PCRE2 (PHP >=7.3)
title
Submitted by
anonymous
-
2 years ago
0
dmidecode parse
Python
Used to match all parts of output from dmidecode.
Submitted by
Paddy3118
-
2 years ago
0
MSSQL data source and initial catalog
PCRE2 (PHP >=7.3)
given a connection string to MSSQL server, we want to extract the URL and the name of the database. these are the "data source" and "initial catalog" fields respectively. The regex does not assume an order between those fieldss
Submitted by
Noam
-
2 years ago
(Last modified 2 years ago)
0
Get everything between two characters
Python
Get everything between two characters
Submitted by
Danarvelini
-
2 years ago
(Last modified 2 years ago)
0
Template regex
PCRE2 (PHP >=7.3)
Template
Submitted by
anonymous
-
2 years ago
0
只包含字母下划线数字
PCRE2 (PHP >=7.3)
匹配只包含字母,数字,下划线的字符串
Submitted by
白小黑
-
2 years ago
0
Spaces to Dashes
PCRE2 (PHP >=7.3)
Turns spaces to dashes, for Zoom Meeting Rooms
Submitted by
anonymous
-
2 years ago
0
currencies Question
Python
怎么在匹配 30p, 500m时,不会匹配到文章中的年份和百分比数字
Submitted by
anonymous
-
2 years ago
0
MM/DD/YYYY Date Validator
PCRE2 (PHP >=7.3)
Validates dates in MM/DD/YYYY format
Submitted by
Sergio Rey
-
2 years ago
0
International names
PCRE2 (PHP >=7.3)
Regex for international names
Submitted by
Pierre Jochem
-
2 years ago
0
Audio and Video files
Python
Match *audio *and *video *files in python
Submitted by
anonymous
-
2 years ago
0
audiomack
Python
valid url test for audiomack website
Submitted by
Abdullah Ibn Fulan
-
2 years ago
1
Filtering Log Files with Regular Expressions
PCRE2 (PHP >=7.3)
We're using the same syslog, and we want to display the date, time, and process id that's inside the square brackets. We can read each line of the syslog and pass the contents to the show_time_of_pid function. Fill in the gaps to extract the date, time, and process id from the passed line, and retur...
Submitted by
anonymous
-
2 years ago
0
get-time
PCRE2 (PHP >=7.3)
Suggest a RegEx to checks for the time format of a 12-hour clock, as follows: the hour is between 1 and 12, with no leading zero, followed by a colon, then minutes between 00 and 59, then an optional space, and then AM or PM, in upper or lower case
Submitted by
ali
-
2 years ago
0
Prime regex
PCRE2 (PHP >=7.3)
All characters have to be the same Matches non-primes
Submitted by
nopeless | u/kattskill
-
2 years ago
0
Match URL (any beginning and domain extension)
PCRE2 (PHP >=7.3)
PS: It catches undesired strings if they have a dot in the middle, for example "test.test", because it's not checking if ".test" is a real domain extension. You can improve the solution by checking all the possible domain extensions: https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
Submitted by
Vini Pereira
-
2 years ago
(Last modified 2 years ago)
1
...
73
74
75
76
77
...
251
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(?i)
hipovitaminosis
[
\s
]
{0,3}
D
|
d
[
eé
]
ficit
[
\s
]
{0,3}
vitam
[
ií
]
na
[
\s
]
{0,3}
D
|
deficiencia
[
\s
]
{0,3}
[
\S
[
\s
]
{0,3}
vitam
[
ií
]
na
[
\s
]
{0,3}
D
|
d
[
ée
]
ficit
[
\s
]
{0,3}
vit
[
\s
]
{0,3}
D
|
deficiencia
[
\s
]
{0,3}
vit
[
\s
]
{0,3}
D
|
vit
[
\s
]
{0,3}
D
[
\s
]
{0,3}
<30
/
gm
Open regex in editor
Description
Hipovitaminosis
Submitted by
anonymous
-
3 years ago