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,040 community submitted regex patterns...
0
Search pages and youtube videos
PCRE2 (PHP >=7.3)
Regex to match URLs of search result pages and youtube videos.
Submitted by
Wei Li
-
3 years ago
0
Finds all forms of "согласен" words
Python
Finds all forms of "согласен" words
Submitted by
anonymous
-
3 years ago
0
Starts by # inside string
PCRE (PHP <7.3)
Match with starts by character "#" and follow number inside string
Submitted by
anonymous
-
3 years ago
0
[promtail] pod-controller
PCRE2 (PHP >=7.3)
matching pod-controller
Submitted by
anonymous
-
3 years ago
0
SC Log Line Explanation
Python
Matches elements of a log entry from SC.
Submitted by
G.E. Hatt Jr
-
3 years ago
0
Laravel scheduler call method
PCRE2 (PHP >=7.3)
Validate and get parameters for Laravel scheduler
Submitted by
Mauricio Alexander Flórez
-
3 years ago
0
yaml file names with alternatives
Python
matches any file with *.yml or *.yaml
Submitted by
anonymous
-
3 years ago
0
Find PHP short open tags
PCRE2 (PHP >=7.3)
Find PHP short open tags
Submitted by
anonymous
-
3 years ago
0
Shoes - Servers Related to an Application
PCRE2 (PHP >=7.3)
Paste in the ... portion of the Application page and this expression should extract the list of servers for you.
Submitted by
Cory
-
3 years ago
0
Regex to verify a java method
Java 8
Verifies java methods
Submitted by
Marco Galindo
-
3 years ago
0
Add missing ClassVar type annotations to arbitrarily nested Python class attributes with existing annotations.
Python
Assuming class variables are defined in SCREAMING_SNAKE_CASE, this regex searches for class attributes which do not yet have a ClassVar annotation from the typing module. This can be useful for adding missing class variables by replacing the group named 'annotation' with ClassVar[${annotation}]. I.e...
Submitted by
jrbergen
-
3 years ago
0
Bangladeshi Phone Number Regex
PCRE2 (PHP >=7.3)
Bangladeshi Phone Number Regex
Submitted by
Siam
-
3 years ago
0
Non-"ness" remover
Python
Remove all words that don't end in "ness" from a dictionary.
Submitted by
anonymous
-
3 years ago
0
移除非法字符
Java 8
冲鸭!
Submitted by
anonymous
-
3 years ago
0
ip:port check
PCRE2 (PHP >=7.3)
ip:port check
Submitted by
anonymous
-
3 years ago
0
Pesables
PCRE (PHP <7.3)
4 enteros / coma o punto / 3 decimales
Submitted by
nico-ber
-
3 years ago
0
sabre parse
PCRE2 (PHP >=7.3)
simple sabre line parser
Submitted by
aleks777
-
3 years ago
0
PDFtron Android Native Labels
PCRE2 (PHP >=7.3)
Extract translations from F* XMLs
Submitted by
Julian Somoza
-
3 years ago
0
Find coordinates
Python
Find coordinates
Submitted by
jjvillavicencio
-
3 years ago
0
零宽断言 - 前方不为指定字符串
PCRE (PHP <7.3)
零宽断言比较复杂。保存了一些示例待不时之需 ()表示捕获分组,()会把每个分组里的匹配的值保存起来,从左向右,以分组的左括号为标志,第一个出现的分组的组号为1,第二个为2,以此类推 (?:)表示非捕获分组,和捕获分组唯一的区别在于,非捕获分组匹配的值不会保存起来 正则表达式的先行断言和后行断言一共有 4 种形式:...
Submitted by
anonymous
-
3 years ago
1
...
766
767
768
769
770
...
902
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
^
(?P<major>
0
|
[
1
-
9
]
\d
*
)
\.
(?P<minor>
0
|
[
1
-
9
]
\d
*
)
\.
(?P<patch>
0
|
[
1
-
9
]
\d
*
)
(?:
-
(?P<prerelease>
(?:
0
|
[
1
-
9
]
\d
*
|
\d
*
[
a
-
zA
-
Z-
]
[
0
-
9a
-
zA
-
Z-
]
*
)
(?:
\.
(?:
0
|
[
1
-
9
]
\d
*
|
\d
*
[
a
-
zA
-
Z-
]
[
0
-
9a
-
zA
-
Z-
]
*
)
)*
)
)?
(?:
\+
(?P<buildmetadata>
[
0
-
9a
-
zA
-
Z-
]
+
(?:
\.
[
0
-
9a
-
zA
-
Z-
]
+
)*
)
)?
$
/
gm
Open regex in editor
Description
Public library
Submitted by
Masoud shokohi
-
3 years ago